• 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
kopeteaddedinfoevent.h
Go to the documentation of this file.
1 /*
2  kopeteaddedinfoevent.h - Kopete Added Info Event
3 
4  Copyright (c) 2008 by Roman Jarosz <kedgedev@centrum.cz>
5  Kopete (c) 2008 by the Kopete developers <kopete-devel@kde.org>
6 
7  *************************************************************************
8  * *
9  * This library is free software; you can redistribute it and/or *
10  * modify it under the terms of the GNU Lesser General Public *
11  * License as published by the Free Software Foundation; either *
12  * version 2 of the License, or (at your option) any later version. *
13  * *
14  *************************************************************************
15 */
16 #ifndef KOPETEADDEDINFOEVENT_H
17 #define KOPETEADDEDINFOEVENT_H
18 
19 #include "kopeteinfoevent.h"
20 
21 namespace Kopete {
22 
23 class MetaContact;
24 class Account;
67 class KOPETE_EXPORT AddedInfoEvent : public InfoEvent
68 {
69  Q_OBJECT
70 public:
74  enum ShowAction
75  {
76  AddAction = 0x001,
78  AuthorizeAction = 0x002,
79  BlockAction = 0x004,
80  InfoAction = 0x008,
82  AddContactAction = 0x100,
84  AllActions = 0x00F
85  };
86  Q_DECLARE_FLAGS(ShowActionOptions, ShowAction)
87 
88 
94  AddedInfoEvent( const QString& contactId, Kopete::Account *account );
95 
96  ~AddedInfoEvent();
97 
101  QString contactId() const;
102 
106  Kopete::Account* account() const;
107 
114  void showActions( ShowActionOptions actions );
115 
121  void setContactNickname( const QString& nickname );
122 
133  MetaContact* addContact() const;
134 
135 public Q_SLOTS:
139  virtual void activate( uint actionId );
140 
144  virtual void sendEvent();
145 
146 private Q_SLOTS:
147  void addDialogOk();
148  void addDialogInfo();
149  void addDialogFinished();
150 
151 private:
152  class Private;
153  Private * const d;
154 };
155 Q_DECLARE_OPERATORS_FOR_FLAGS( AddedInfoEvent::ShowActionOptions )
156 
157 }
158 
159 #endif
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
Kopete::InfoEvent
Base class for all Info Events.
Definition: kopeteinfoevent.h:39
QString
kopeteinfoevent.h
Kopete::AddedInfoEvent
Event which is shown when a contact added you into the contact list or requested authorization.
Definition: kopeteaddedinfoevent.h:67
Kopete::AddedInfoEvent::ShowAction
ShowAction
All actions that may be shown and emitted.
Definition: kopeteaddedinfoevent.h:74
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