Differential D22448 Diff 61804 src/contact-editor/editor/generalinfoeditor/messaging/messagingwidget.h
Changeset View
Changeset View
Standalone View
Standalone View
src/contact-editor/editor/generalinfoeditor/messaging/messagingwidget.h
Show All 19 Lines | 1 | /* | |||
---|---|---|---|---|---|
20 | 02110-1301, USA. | 20 | 02110-1301, USA. | ||
21 | */ | 21 | */ | ||
22 | 22 | | |||
23 | #ifndef MESSAGINGWIDGET_H | 23 | #ifndef MESSAGINGWIDGET_H | ||
24 | #define MESSAGINGWIDGET_H | 24 | #define MESSAGINGWIDGET_H | ||
25 | 25 | | |||
26 | #include <QWidget> | 26 | #include <QWidget> | ||
27 | 27 | | |||
28 | #include <editor/im/imaddress.h> | | |||
29 | #include "contacteditor_private_export.h" | 28 | #include "contacteditor_private_export.h" | ||
29 | | ||||
30 | class QToolButton; | 30 | class QToolButton; | ||
31 | | ||||
32 | namespace KContacts { | ||||
33 | class Impp; | ||||
34 | } | ||||
35 | | ||||
31 | namespace ContactEditor { | 36 | namespace ContactEditor { | ||
32 | class PreferredLineEditWidget; | 37 | class PreferredLineEditWidget; | ||
33 | class ContactEditorComboBox; | 38 | class ContactEditorComboBox; | ||
34 | class CONTACTEDITOR_TESTS_EXPORT MessagingWidget : public QWidget | 39 | class CONTACTEDITOR_TESTS_EXPORT MessagingWidget : public QWidget | ||
35 | { | 40 | { | ||
36 | Q_OBJECT | 41 | Q_OBJECT | ||
37 | public: | 42 | public: | ||
38 | explicit MessagingWidget(QWidget *parent = nullptr); | 43 | explicit MessagingWidget(QWidget *parent = nullptr); | ||
39 | ~MessagingWidget(); | 44 | ~MessagingWidget(); | ||
40 | 45 | | |||
41 | void updateAddRemoveButton(bool addButtonEnabled); | 46 | void updateAddRemoveButton(bool addButtonEnabled); | ||
42 | IMAddress imAddress() const; | 47 | KContacts::Impp imAddress() const; | ||
43 | void setIMAddress(const IMAddress &address); | 48 | void setIMAddress(const KContacts::Impp &address); | ||
44 | void setPreferred(bool b); | 49 | void setPreferred(bool b); | ||
45 | void clearWidget(); | 50 | void clearWidget(); | ||
46 | void setReadOnly(bool readOnly); | 51 | void setReadOnly(bool readOnly); | ||
47 | Q_SIGNALS: | 52 | Q_SIGNALS: | ||
48 | void addWidget(MessagingWidget *); | 53 | void addWidget(MessagingWidget *); | ||
49 | void removeWidget(MessagingWidget *); | 54 | void removeWidget(MessagingWidget *); | ||
50 | void preferredChanged(MessagingWidget *); | 55 | void preferredChanged(MessagingWidget *); | ||
51 | 56 | | |||
Show All 11 Lines |