summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/meanwhile/meanwhileprotocol.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitbcb704366cb5e333a626c18c308c7e0448a8e69f (patch)
treef0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /kopete/protocols/meanwhile/meanwhileprotocol.h
downloadtdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz
tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/meanwhile/meanwhileprotocol.h')
-rw-r--r--kopete/protocols/meanwhile/meanwhileprotocol.h77
1 files changed, 77 insertions, 0 deletions
diff --git a/kopete/protocols/meanwhile/meanwhileprotocol.h b/kopete/protocols/meanwhile/meanwhileprotocol.h
new file mode 100644
index 00000000..aa7a9861
--- /dev/null
+++ b/kopete/protocols/meanwhile/meanwhileprotocol.h
@@ -0,0 +1,77 @@
+/*
+ meanwhileprotocl.h - the meanwhile protocol definition
+
+ Copyright (c) 2005 by Jeremy Kerr <[email protected]>
+ Copyright (c) 2003-2004 by Sivaram Gottimukkala <[email protected]>
+
+ Kopete (c) 2002-2004 by the Kopete developers <[email protected]>
+
+ *************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ *************************************************************************
+*/
+#ifndef MEANWHILEPROTOCOL_H
+#define MEANWHILEPROTOCOL_H
+
+#include <kopeteprotocol.h>
+
+#include "kopetecontact.h"
+#include "kopetemetacontact.h"
+#include "kopeteonlinestatus.h"
+#include "kopeteonlinestatusmanager.h"
+#include "addcontactpage.h"
+
+#include <kdebug.h>
+#define MEANWHILE_DEBUG 14200
+#define HERE kdDebug(MEANWHILE_DEBUG) << k_funcinfo << endl
+#define mwDebug() kdDebug(MEANWHILE_DEBUG)
+
+class MeanwhileAccount;
+class MeanwhileEditAccountWidget;
+class MeanwhileAddContactPage;
+
+class MeanwhileProtocol : public Kopete::Protocol
+{
+ Q_OBJECT
+public:
+ MeanwhileProtocol(QObject *parent, const char *name,
+ const QStringList &args);
+
+ ~MeanwhileProtocol();
+
+ virtual AddContactPage *createAddContactWidget(QWidget *parent,
+ Kopete::Account *account);
+
+ virtual KopeteEditAccountWidget *createEditAccountWidget(
+ Kopete::Account *account, QWidget *parent);
+
+ virtual Kopete::Account *createNewAccount(const QString &accountId);
+
+ virtual Kopete::Contact *deserializeContact(
+ Kopete::MetaContact *metaContact,
+ const QMap<QString,QString> &serializedData,
+ const QMap<QString, QString> &addressBookData);
+
+ const Kopete::OnlineStatus accountOfflineStatus();
+
+ const Kopete::OnlineStatus lookupStatus(
+ enum Kopete::OnlineStatusManager::Categories cats);
+
+ const Kopete::OnlineStatus statusOffline;
+ const Kopete::OnlineStatus statusOnline;
+ const Kopete::OnlineStatus statusAway;
+ const Kopete::OnlineStatus statusBusy;
+ const Kopete::OnlineStatus statusIdle;
+ const Kopete::OnlineStatus statusAccountOffline;
+
+ Kopete::ContactPropertyTmpl statusMessage;
+ Kopete::ContactPropertyTmpl awayMessage;
+
+};
+
+#endif