source: SMSSender/lib/libdatatypes/src/eventmappers/scontacteventmapper.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: 683 bytes
Line 
1/*
2 * contacteventmapper.h
3 *
4 *  Created on: Jan 17, 2010
5 *      Author: saemy
6 */
7
8#ifndef SCONTACTEVENTMAPPER_H_
9#define SCONTACTEVENTMAPPER_H_
10
11#include <QObject>
12
13#include "eventinterfaces.h"
14
15class IContact;
16
17class SContactEventMapper: public QObject,
18                           virtual public IContactEvents {
19    Q_OBJECT
20    Q_INTERFACES(IContactEvents)
21
22public:
23    explicit SContactEventMapper(IContact* contact)
24      : contact_(contact)
25    {};
26    IContact* contact() const { return contact_; }
27
28signals:
29    void idChanged(int oldId, int newId);
30    void dataChanged();
31
32private:
33    IContact* contact_;
34};
35
36#include <icontact.h>
37
38#endif /* SCONTACTEVENTMAPPER_H_ */
Note: See TracBrowser for help on using the repository browser.