source: SMSSender/lib/libdatatypes/src/eventmappers/eventinterfaces.h @ 71:415b45c71663

3.0
Last change on this file since 71:415b45c71663 was 71:415b45c71663, checked in by Sämy Zehnder <saemy.zehnder@…>, 12 years ago
  • Reorganized all the libraries. libinterfaces and libgateways are removed now and libdatatypes contains now all these files.
File size: 1.6 KB
Line 
1/*
2 * eventinterfaces.h
3 *
4 *  Created on: Jan 16, 2010
5 *      Author: saemy
6 */
7
8#ifndef EVENTINTERFACES_H_
9#define EVENTINTERFACES_H_
10
11#include <iinterface.h>
12
13class IContact;
14
15class IIdDataEvents: public IInterface {
16    Q_INTERFACES(IInterface)
17
18public:
19    virtual void idChanged(int oldId, int newId) =0;
20    virtual void dataChanged() =0;
21};
22Q_DECLARE_INTERFACE(IIdDataEvents,
23                     "ch.gorrion.smssender.IIdDataEvents/1.0")
24
25
26/* Account */
27
28class IAccountEvents: public IIdDataEvents {
29    Q_INTERFACES(IIdDataEvents)
30
31public:
32    virtual void statusChanged(const QString& status) =0;
33    virtual void progressChanged(int progress) =0;
34};
35Q_DECLARE_INTERFACE(IAccountEvents,
36                     "ch.gorrion.smssender.IAccountEvents/1.0")
37
38
39class ILoginAccountEvents: virtual public IAccountEvents {
40    Q_INTERFACES(IAccountEvents)
41
42public:
43    virtual void loggedIn() =0;
44    virtual void loggedOut() =0;
45};
46Q_DECLARE_INTERFACE(ILoginAccountEvents,
47                     "ch.gorrion.smssender.ILoginAccountEvents/1.0")
48
49
50/* Contact */
51
52class IContactEvents: public IIdDataEvents {
53    Q_INTERFACES(IIdDataEvents)
54};
55Q_DECLARE_INTERFACE(IContactEvents,
56                     "ch.gorrion.smssender.IContactEvents/1.0")
57
58
59/* Group */
60
61class IGroupEvents: public IIdDataEvents {
62    Q_INTERFACES(IIdDataEvents)
63
64public:
65    virtual void contactAdded(IContact* contact) =0;
66    virtual void contactRemoved(IContact* contact) =0;
67};
68Q_DECLARE_INTERFACE(IGroupEvents,
69                     "ch.gorrion.smssender.IGroupEvents/1.0")
70
71
72#include <icontact.h>
73
74#endif /* EVENTINTERFACES_H_ */
Note: See TracBrowser for help on using the repository browser.