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

kopete/kopete

  • sources
  • kde-4.14
  • kdenetwork
  • kopete
  • kopete
kopetedbusinterface_p.h
Go to the documentation of this file.
1 /*
2  kopetedbusinterfaceprivate.h - Kopete D-Bus interface private class
3 
4  Copyright (c) 2008 by Dennis Nienhüser <earthwings@gentoo.org>
5 
6  Kopete (c) 2002-2008 by the Kopete developers <kopete-devel@kde.org>
7 
8  *************************************************************************
9  * *
10  * This library is free software; you can redistribute it and/or *
11  * modify it under the terms of the GNU Lesser General Public *
12  * License as published by the Free Software Foundation; either *
13  * version 2 of the License, or (at your option) any later version. *
14  * *
15  *************************************************************************
16  */
17 
18 #ifndef KOPETE_DBUS_INTERFACE_P_H
19 #define KOPETE_DBUS_INTERFACE_P_H
20 
21 #include <QtCore/QObject>
22 #include <QtCore/QVariantMap>
23 #include <QtCore/QTime>
24 
25 #include "kopetemessage.h"
26 #include "kopetechatsession.h"
27 #include "kopetemetacontact.h"
28 
32 class ContactStalker: public QObject
33 {
34  Q_OBJECT
35 
36 public:
37  ContactStalker(Kopete::MetaContact *contact);
38 
39 Q_SIGNALS:
41  void contactChanged(QString contactId);
42 
43 private Q_SLOTS:
44  void messageAppended( Kopete::Message &message, Kopete::ChatSession *session);
45 
46  void slotEmitSignal();
47 
48  void slotEmitSignalDelayed();
49 
50  void slotMetaContactRemoved(Kopete::MetaContact *contact);
51 
52 private:
53  Kopete::MetaContact *m_contact;
54 
55  QTime m_lastChange;
56 };
57 
62 class KopeteDBusInterfacePrivate: public QObject
63 {
64 Q_OBJECT
65 
66 public:
67  KopeteDBusInterfacePrivate();
68 
69  QStringList listContact(const QList<Kopete::MetaContact*> &contactList);
70 
71  Kopete::OnlineStatusManager::Categories status2Value(const QString &status);
72 
78  Kopete::MetaContact *findContact(const QString &nameOrId);
79 
80 Q_SIGNALS:
86  void contactChanged(QString contactId);
87 
88 private Q_SLOTS:
89  void slotMetaContactAdded(Kopete::MetaContact* contact);
90 
91 };
92 
93 #endif // KOPETE_DBUS_INTERFACE_P_H
KopeteDBusInterfacePrivate::KopeteDBusInterfacePrivate
KopeteDBusInterfacePrivate()
KopeteDBusInterfacePrivate::listContact
QStringList listContact(const QList< Kopete::MetaContact * > &contactList)
ContactStalker
Tracks changes of a metacontact and reports them via signals.
Definition: kopetedbusinterface_p.h:32
KopeteDBusInterfacePrivate::contactChanged
void contactChanged(QString contactId)
Emitted whenever a contact's property changed.
ContactStalker::ContactStalker
ContactStalker(Kopete::MetaContact *contact)
QTime
Kopete::Items::MetaContact
Definition: kopeteitembase.h:57
QObject
QString
QList< Kopete::MetaContact * >
QStringList
KopeteDBusInterfacePrivate::findContact
Kopete::MetaContact * findContact(const QString &nameOrId)
Tries to locate a meta contact using first the protocol:account:contact triplet, if that fails the me...
ContactStalker::contactChanged
void contactChanged(QString contactId)
Emitted whenever a property of the tracked contact changed.
KopeteDBusInterfacePrivate::status2Value
Kopete::OnlineStatusManager::Categories status2Value(const QString &status)
KopeteDBusInterfacePrivate
Tracks changes of all metacontacts and reports them via signals.
Definition: kopetedbusinterface_p.h:62
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/kopete

Skip menu "kopete/kopete"
  • 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