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 modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (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
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with Classified Ads. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #ifndef EDIT_CONTACT_DIALOG_H
21 #define EDIT_CONTACT_DIALOG_H
22 
23 #include <QDialog>
24 #include "../mcontroller.h"
25 #include "../ui_editContact.h"
26 class ContactListingModel ;
27 
28 class Contact ;
29 
34 class EditContactDialog : public QDialog
35 {
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:34
Hash is class that carries 160-bit digest.
Definition: hash.h:37
CAErrorSituation
Definition: mcontroller.h:48
void error(MController::CAErrorSituation aError, const QString &aExplanation)
void cancelButtonClicked()
Carrier-class for a profile that is in contacts-list.
Definition: contact.h:34
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:39
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:35
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