source: SMSSender/lib/libdatatypes/src/business/BCContact.h @ 43:10dd65d71f7f

3.0
Last change on this file since 43:10dd65d71f7f was 43:10dd65d71f7f, checked in by Sämy Zehnder <saemy.zehnder@…>, 12 years ago
  • Did a lot of work...
File size: 1.1 KB
Line 
1/*
2 * BCContact.h
3 *
4 *  Created on: May 17, 2009
5 *      Author: saemy
6 */
7
8#ifndef BCCONTACT_H_
9#define BCCONTACT_H_
10
11#include <QObject>
12
13#include <icontact.h>
14
15#include "../snumber.h"
16
17class BCContact: public QObject, public IContact {
18    Q_OBJECT
19    Q_INTERFACES(IContact)
20
21public:
22    BCContact();
23
24    virtual int         id() const;
25    virtual QString     name() const;
26    virtual SNumber     number() const;
27    virtual QStringList aliases() const;
28    virtual QImage      image() const;
29
30    virtual void setId(int id);
31    virtual void setName(const QString& name);
32    virtual void setNumber(const SNumber& number);
33    virtual void setAliases(const QStringList& aliases);
34    virtual void setImage(const QImage& image);
35
36    virtual ContactEventMapper* eventMapper() const;
37
38protected:
39    virtual IContactEvents* contactEvents() const;
40
41private:
42    ContactEventMapper* eventMapper_;
43
44    int id_;
45    QString name_;
46    SNumber number_;
47    QStringList aliases_;
48    QImage image_;
49};
50
51
52namespace BC {
53    class Contact: public BCContact {};
54} // namespace BC
55
56#endif /* BCCONTACT_H_ */
Note: See TracBrowser for help on using the repository browser.