summaryrefslogtreecommitdiffstats
path: root/kopete/plugins/statistics/statisticsdcopiface.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/plugins/statistics/statisticsdcopiface.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/plugins/statistics/statisticsdcopiface.h')
-rw-r--r--kopete/plugins/statistics/statisticsdcopiface.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/kopete/plugins/statistics/statisticsdcopiface.h b/kopete/plugins/statistics/statisticsdcopiface.h
new file mode 100644
index 00000000..b45a2c95
--- /dev/null
+++ b/kopete/plugins/statistics/statisticsdcopiface.h
@@ -0,0 +1,74 @@
+/*
+ statisticsdcopiface.h
+
+ Copyright (c) 2003-2004 by Marc Cramdal <marc.cramdal@gmail.com>
+
+
+ *************************************************************************
+ * *
+ * 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 STATISTICSDCOP_H
+#define STATISTICSDCOP_H
+
+#include <dcopobject.h>
+
+
+class StatisticsDCOPIface : virtual public DCOPObject
+{
+ K_DCOP
+public:
+
+k_dcop:
+ /**
+ * Shows the statistics dialog for contact which has KABC id \var contactId
+ */
+ virtual void dcopStatisticsDialog(QString contactId) = 0;
+ /**
+ * \returns true if contact was online at time timeStamp, false else. Returns false if contact does not exist.
+ */
+ virtual bool dcopWasOnline(QString id, int timeStamp) = 0;
+ /**
+ * \returns true if contact was online at dt, false else. Returns false if contact does not exist or if date is invalid.
+ */
+ virtual bool dcopWasOnline(QString id, QString datetime) = 0;
+
+ /**
+ * \returns true if contact was away at time timeStamp, false else. Returns false if contact does not exist.
+ */
+ virtual bool dcopWasAway(QString id, int timeStamp) = 0;
+ /**
+ * \returns true if contact was away at dt, false else. Returns false if contact does not exist or if date is invalid.
+ */
+ virtual bool dcopWasAway(QString id, QString datetime) = 0;
+
+ /**
+ * \returns true if contact was offline at time timeStamp, false else. Returns false if contact does not exist.
+ */
+ virtual bool dcopWasOffline(QString id, int timeStamp) = 0;
+ /**
+ * \returns true if contact was offline at dt, false else. Returns false if contact does not exist or if date is invalid.
+ */
+ virtual bool dcopWasOffline(QString id, QString datetime) = 0;
+
+ /**
+ * \returns return the status of the contact at datetime.
+ */
+ virtual QString dcopStatus(QString id, QString datetime) = 0;
+ /**
+ * \returns return the status of the contact at timeStamp.
+ */
+ virtual QString dcopStatus(QString id, int timeStamp) = 0;
+ /**
+ * \returns the main status (most used status) of the contact id at date (not time) timeStamp. Will take the day where timeStamp is.
+ */
+ virtual QString dcopMainStatus(QString id, int timeStamp) = 0;
+};
+
+#endif // STATISTICSDCOP_H