equal
deleted
inserted
replaced
|
1 /*! \file |
|
2 \brief File containing class description for SMFUserProfile class. |
|
3 |
|
4 Copyright (c) 2010 Sasken Communication Technologies Ltd. |
|
5 All rights reserved. |
|
6 This component and the accompanying materials are made available |
|
7 under the terms of the "{License}" |
|
8 which accompanies this distribution, and is available |
|
9 at the URL "{LicenseUrl}". |
|
10 |
|
11 \author Jaspinder Singh, Sasken Communication Technologies Ltd - Initial contribution |
|
12 |
|
13 \version 0.1 |
|
14 |
|
15 */ |
|
16 |
|
17 #ifndef SMFUSERPROFILE_H |
|
18 #define SMFUSERPROFILE_H |
|
19 |
|
20 #include <QObject> |
|
21 #include <QString> |
|
22 |
|
23 class DataStoreManager; //Forward Declaration |
|
24 |
|
25 //! \class SMFUserProfile |
|
26 /*! |
|
27 \brief This class represents a user's profile. |
|
28 \brief A user is a contact stored in the handset. This profile is created for contacts in the handset and is related to the social profiles. |
|
29 A single user profile can be associated with multiple social profiles in the database. |
|
30 |
|
31 \sa SMFSocialProfile |
|
32 */ |
|
33 class SMFUserProfile : public QObject |
|
34 { |
|
35 Q_OBJECT |
|
36 |
|
37 friend class DataStoreManager; |
|
38 |
|
39 public: |
|
40 SMFUserProfile(const QString& name = "", const QString& contact_id = "", QObject* parent = 0); |
|
41 ~SMFUserProfile(); |
|
42 int userID() const; |
|
43 const QString& name() const; |
|
44 const QString& contactID() const; |
|
45 |
|
46 public slots: |
|
47 void setName(const QString& name); |
|
48 void setContactID(const QString& contact_id); |
|
49 |
|
50 private: |
|
51 int m_user_id; |
|
52 QString m_name; |
|
53 QString m_contact_id; |
|
54 |
|
55 private slots: |
|
56 void setUserID(int id); |
|
57 }; |
|
58 |
|
59 #endif |