kopete/protocols/messenger/libpapillon
notifypresencetask.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef PAPILLONNOTIFYPRESENCETASK_H
00016 #define PAPILLONNOTIFYPRESENCETASK_H
00017
00018 #include <Papillon/Enums>
00019 #include <Papillon/Macros>
00020
00021 #include <Papillon/Task>
00022
00023 namespace Papillon
00024 {
00025
00034 class PAPILLON_EXPORT NotifyPresenceTask : public Papillon::Task
00035 {
00036 Q_OBJECT
00037 public:
00042 explicit NotifyPresenceTask(Papillon::Task *parent);
00046 ~NotifyPresenceTask();
00047
00053 virtual bool take(Papillon::NetworkMessage *networkMessage);
00054
00055 signals:
00056
00062 void contactPresenceChanged(const QString &contactId, Papillon::Presence::Status presence);
00063
00064 protected:
00070 virtual bool forMe(Papillon::NetworkMessage *networkMessage) const;
00071
00072 private:
00073 class Private;
00074 Private *d;
00075 };
00076
00077 }
00078 #endif