smf/smfservermodule/smfserver/datastoremgr/smfSocialProfile.h
changeset 7 be09cf1f39dd
equal deleted inserted replaced
6:c39a6cfd1fb9 7:be09cf1f39dd
       
     1 /*!	\file 
       
     2 	\brief File containing class description for SMFSocialProfile 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 	\author
       
    14 	\version 0.1
       
    15 
       
    16 */
       
    17 
       
    18 #ifndef SMFSOCIALPROFILE_H
       
    19 #define SMFSOCIALPROFILE_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <QString>
       
    23 
       
    24 #include "smfSns.h"
       
    25 #include "smfUserProfile.h"
       
    26 
       
    27 class DataStoreManager; //Forward Declaration
       
    28 
       
    29 //!	\class 	SMFSocialProfile
       
    30 /*!
       
    31 	\brief	This class represents a user's public profile on a social networking site.
       
    32 	\brief	A social profile represents the information about the user/contact profiles on various social networking sites. 
       
    33 			Every profile on a social networking site gets a social profile. 
       
    34 			A single social profile can be tied to one social networking site and one user profile.
       
    35 			
       
    36 	\sa 	SMFUserProfile , SMFSocialNetworkingSite
       
    37 */
       
    38 class SMFSocialProfile: public QObject
       
    39 {
       
    40 	Q_OBJECT
       
    41 
       
    42     friend class DataStoreManager;
       
    43 	
       
    44 	public:
       
    45         SMFSocialProfile(const SMFSocialNetworkingSite& site, const QString& profile_url = "", const QString& screen_alias = "", QObject* parent = 0);
       
    46         SMFSocialProfile(int sns_id = -1, int user_id = -1, const QString& profile_url = "", const QString& screen_alias = "", QObject* parent = 0);
       
    47         SMFSocialProfile (const SMFSocialProfile& other);
       
    48 		~SMFSocialProfile();
       
    49 		int associatedUserID() const;
       
    50 		int associatedSnsID() const;
       
    51 		int profileID() const;
       
    52 		const QString& profileURL() const;
       
    53 		const QString& screenAlias() const;
       
    54 	
       
    55 	public slots:
       
    56 		void setAssociatedSns(const SMFSocialNetworkingSite& site);
       
    57 		void setAssociatedSnsID(int sns_id);
       
    58 		void setProfileURL(const QString& profile_url);
       
    59 		void setScreenAlias(const QString& screen_alias);
       
    60 	
       
    61 	private:
       
    62 		int m_social_profile_id;
       
    63 		int m_user_id;
       
    64 		int m_sns_id;
       
    65 		QString m_profile_url;
       
    66 		QString m_screen_alias;		
       
    67 		
       
    68 	private slots:
       
    69 		void setProfileID(int id);
       
    70         void setAssociatedUserID(int user_id);
       
    71         void setAssociatedUserProfile(const SMFUserProfile& user_profile);
       
    72 };
       
    73 
       
    74 #endif