equal
deleted
inserted
replaced
|
1 /*! \file |
|
2 \brief File containing class description for SMFSocialNetworkingSite 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 |
|
18 #ifndef SMFSOCIALNETWORKINGSITE_H |
|
19 #define SMFSOCIALNETWORKINGSITE_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <QString> |
|
23 |
|
24 class DataStoreManager; //Forward Declaration |
|
25 |
|
26 //! \class SMFSocialNetworkingSite |
|
27 /*! |
|
28 \brief This class represents a social networking site. |
|
29 |
|
30 \sa SMFSocialProfile |
|
31 */ |
|
32 class SMFSocialNetworkingSite : public QObject |
|
33 { |
|
34 Q_OBJECT |
|
35 |
|
36 friend class DataStoreManager; |
|
37 |
|
38 public: |
|
39 SMFSocialNetworkingSite(const QString& name="", const QString& url="", QObject* parent = 0); |
|
40 int snsID() const; |
|
41 const QString& snsName() const; |
|
42 const QString& snsURL() const; |
|
43 ~SMFSocialNetworkingSite(); |
|
44 |
|
45 public slots: |
|
46 void setSnsName(const QString& name); |
|
47 void setSnsURL(const QString& url); |
|
48 |
|
49 private: |
|
50 int m_sns_id; // m_sns_id gets generated. It is never set through a setter method. Hence, no public setter for ID. |
|
51 // It gets generated when the social networking site is stored in the database. |
|
52 QString m_sns_name; |
|
53 QString m_sns_url; |
|
54 |
|
55 private slots: |
|
56 void setSnsID(int id); //private setter method for ID. Might be required. |
|
57 }; |
|
58 |
|
59 #endif |