Classified ads
editcontact.h
Go to the documentation of this file.
1 /* -*-C++-*- -*-coding: utf-8-unix;-*-
2  Classified Ads is Copyright (c) Antti Järvinen 2013.
3 
4  This file is part of Classified Ads.
5 
6  Classified Ads is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 of the License, or (at your option) any later version.
10 
11  Classified Ads is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public
17  License along with Classified Ads; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20 
21 #ifndef EDIT_CONTACT_DIALOG_H
22 #define EDIT_CONTACT_DIALOG_H
23 
24 #include <QDialog>
25 #include "../mcontroller.h"
26 #include "../ui_editContact.h"
27 class ContactListingModel ;
28 
29 class Contact ;
30 
35 class EditContactDialog : public QDialog {
36  Q_OBJECT
37 
38 public:
42  EditContactDialog(QWidget *aParent,
43  MController* aController,
44  const Hash& aProfileFingerPrint,
45  const QString& aNickName,
46  bool aIsTrusted,
47  ContactListingModel& aContactsModel );
50 
51 private slots:
52  void okButtonClicked() ;
53  void cancelButtonClicked() ;
54 signals:
56  const QString& aExplanation) ;
57 private:
58  Ui_editContactDialog ui ;
61 };
62 
63 #endif
class for editing a contact-list item
Definition: editcontact.h:35
Hash is class that carries 160-bit digest.
Definition: hash.h:38
CAErrorSituation
Definition: mcontroller.h:52
void error(MController::CAErrorSituation aError, const QString &aExplanation)
void cancelButtonClicked()
Carrier-class for a profile that is in contacts-list.
Definition: contact.h:35
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:43
ContactListingModel & iContactsModel
Definition: editcontact.h:60
Model-class for performing search on contact-list contacts This is supposed to act as an underlying d...
Definition: contactlistingmodel.h:36
MController * iController
Definition: editcontact.h:59
EditContactDialog(QWidget *aParent, MController *aController, const Hash &aProfileFingerPrint, const QString &aNickName, bool aIsTrusted, ContactListingModel &aContactsModel)
Ui_editContactDialog ui
Definition: editcontact.h:58