source: SMSSender/lib/libdatatypes/src/interfaces/icontact.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: 1015 bytes
Line 
1/*
2 * icontact.h
3 *
4 *  Created on: May 17, 2009
5 *      Author: saemy
6 */
7
8#ifndef ICONTACT_H_
9#define ICONTACT_H_
10
11#include <QObject>
12#include <QImage>
13#include <QString>
14#include <QStringList>
15
16#include "iinterface.h"
17
18class SNumber;
19class SContactEventMapper;
20
21class IContact: public IInterface {
22    Q_INTERFACES(IInterface)
23
24public:
25    virtual int         id() const =0;
26    virtual QString     name() const =0;
27    virtual SNumber     number() const =0;
28    virtual QStringList aliases() const =0;
29    virtual QImage      image() const =0;
30
31    virtual void setId(int id)=0;
32    virtual void setName(const QString& name)=0;
33    virtual void setNumber(const SNumber& number)=0;
34    virtual void setAliases(const QStringList& aliases)=0;
35    virtual void setImage(const QImage& image)=0;
36
37    virtual SContactEventMapper* eventMapper() const =0;
38};
39Q_DECLARE_INTERFACE(IContact,
40                    "ch.gorrion.smssender.IContact/1.0")
41
42#include "eventmappers/scontacteventmapper.h"
43
44#endif /* ICONTACT_H_ */
Note: See TracBrowser for help on using the repository browser.