• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/libkopete

  • sources
  • kde-4.14
  • kdenetwork
  • kopete
  • libkopete
  • ui
contactaddednotifydialog.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2005 Olivier Goffart <ogoffart@kde.org>
3 
4  Kopete (c) 2005 by the Kopete developers <kopete-devel@kde.org>
5 
6  *************************************************************************
7  * *
8  * This library is free software; you can redistribute it and/or *
9  * modify it under the terms of the GNU Lesser General Public *
10  * License as published by the Free Software Foundation; either *
11  * version 2 of the License, or (at your option) any later version. *
12  * *
13  *************************************************************************
14 */
15 
16 
17 #ifndef KOPETE_UICONTACTADDEDNOTIFYDIALOG_H
18 #define KOPETE_UICONTACTADDEDNOTIFYDIALOG_H
19 
20 #include <kdialog.h>
21 #include "kopete_export.h"
22 
23 namespace KABC {
24  class Addressee;
25 }
26 
27 namespace Kopete {
28 
29 class Group;
30 class Account;
31 class MetaContact;
32 
33 namespace UI {
34 
69 class KOPETE_EXPORT ContactAddedNotifyDialog : public KDialog
70 {
71 Q_OBJECT
72 public:
76  enum HideWidget
77  {
78  DefaultHide = 0x00,
79  InfoButton = 0x01,
80  AuthorizeCheckBox = 0x02,
81  AddCheckBox = 0x04,
82  AddGroupBox = 0x08
83  };
84  Q_DECLARE_FLAGS(HideWidgetOptions, HideWidget)
85 
86 
97  explicit ContactAddedNotifyDialog(const QString& contactId, const QString& contactNick=QString::null, //krazy:exclude=nullstrassign for old broken gcc
98  Kopete::Account *account=0L, const HideWidgetOptions &hide=DefaultHide);
99 
103  ~ContactAddedNotifyDialog();
104 
109  bool authorized() const;
110 
115  bool added() const;
116 
120  QString displayName() const;
121 
127  Group* group() const;
128 
129 public slots:
130 
141  MetaContact *addContact() const;
142 
143 signals:
148  void applyClicked(const QString &contactId);
149 
159  void infoClicked(const QString &contactId);
160 
161 
162 private slots:
163  void slotAddresseeSelected( const KABC::Addressee &);
164  void slotInfoClicked();
165  void slotFinished();
166 
167 private:
168  struct Private;
169  Private * const d;
170 };
171 
172 Q_DECLARE_OPERATORS_FOR_FLAGS( ContactAddedNotifyDialog::HideWidgetOptions )
173 
174 } // namespace UI
175 } // namespace Kopete
176 #endif
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
Kopete::UI::ContactAddedNotifyDialog::HideWidget
HideWidget
All widget in the dialog that may be hidden.
Definition: contactaddednotifydialog.h:76
Kopete::UI::ContactAddedNotifyDialog
Dialog which is shown when a contact added you in the contact list.
Definition: contactaddednotifydialog.h:69
KDialog
kopete_export.h
QString
Kopete::Group
Class which represents the Group.
Definition: kopetegroup.h:44
Kopete::MetaContact
Definition: kopetemetacontact.h:54
Kopete::Account
The Kopete::Account class handles one account.
Definition: kopeteaccount.h:72
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal