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

kopete/libkopete

contactaddednotifydialog.h

Go to the documentation of this file.
00001 /*
00002     Copyright (c) 2005      Olivier Goffart           <ogoffart@kde.org>
00003 
00004     Kopete    (c) 2005 by the Kopete developers  <kopete-devel@kde.org>
00005 
00006     *************************************************************************
00007     *                                                                       *
00008     * This library is free software; you can redistribute it and/or         *
00009     * modify it under the terms of the GNU Lesser General Public            *
00010     * License as published by the Free Software Foundation; either          *
00011     * version 2 of the License, or (at your option) any later version.      *
00012     *                                                                       *
00013     *************************************************************************
00014 */
00015 
00016 
00017 #ifndef KOPETE_UICONTACTADDEDNOTIFYDIALOG_H
00018 #define KOPETE_UICONTACTADDEDNOTIFYDIALOG_H
00019 
00020 #include <kdialog.h>
00021 #include "kopete_export.h"
00022 
00023 namespace KABC {
00024     class Addressee;
00025 }
00026 
00027 namespace Kopete {
00028 
00029 class Group;
00030 class Account;
00031 class MetaContact;
00032 
00033 namespace UI {
00034 
00069 class KOPETE_EXPORT ContactAddedNotifyDialog : public KDialog
00070 {
00071 Q_OBJECT
00072 public:
00076     enum HideWidget
00077     {
00078         DefaultHide = 0x00, 
00079         InfoButton = 0x01, 
00080         AuthorizeCheckBox = 0x02, 
00081         AddCheckBox = 0x04, 
00082         AddGroupBox = 0x08 
00083     };
00084     Q_DECLARE_FLAGS(HideWidgetOptions, HideWidget)
00085 
00086     
00097     explicit ContactAddedNotifyDialog(const QString& contactId, const QString& contactNick=QString::null,   //krazy:exclude=nullstrassign for old broken gcc
00098                     Kopete::Account *account=0L, const HideWidgetOptions &hide=DefaultHide);
00099 
00103     ~ContactAddedNotifyDialog();
00104 
00109     bool authorized() const;
00110 
00115     bool added() const;
00116 
00120     QString displayName() const;
00121 
00127     Group* group() const;
00128 
00129 public slots:
00130 
00141     MetaContact *addContact() const;
00142 
00143 signals:
00148     void applyClicked(const QString &contactId);
00149 
00159     void infoClicked(const QString &contactId);
00160 
00161 
00162 private slots:
00163     void slotAddresseeSelected( const KABC::Addressee &);
00164     void slotInfoClicked();
00165     void slotFinished();
00166 
00167 private:
00168     struct Private;
00169     Private *d;
00170 };
00171 
00172 Q_DECLARE_OPERATORS_FOR_FLAGS( ContactAddedNotifyDialog::HideWidgetOptions )
00173 
00174 } // namespace UI
00175 } // namespace Kopete
00176 #endif

kopete/libkopete

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

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal