smf/inc/common/smfevent/smfevent.h
changeset 5 edb9dc8273d9
parent 3 0446eb7b28aa
equal deleted inserted replaced
4:969092730d34 5:edb9dc8273d9
    31 
    31 
    32 /**
    32 /**
    33  * @ingroup smf_common_group
    33  * @ingroup smf_common_group
    34  * The event class represents an event
    34  * The event class represents an event
    35  */
    35  */
    36 class SMFCLIENT_EXPORT SmfEvent : public QObject
    36 class SMFCLIENT_EXPORT SmfEvent
    37 	{
    37 	{
    38 	Q_OBJECT
       
    39 public:
    38 public:
    40 	/**
    39 	/**
    41 	 * Constructor with default argument
    40 	 * Constructor with default argument
    42 	 * @param aParent The parent object
       
    43 	 */
    41 	 */
    44 	SmfEvent( QObject *aParent = 0 );
    42 	SmfEvent( );
    45 	
    43 	
    46 	/**
    44 	/**
    47 	 * Copy Constructor
    45 	 * Copy Constructor
    48 	 * @param aOther The reference object
    46 	 * @param aOther The reference object
    49 	 */
    47 	 */
    50 	SmfEvent( const SmfEvent &aOther );
    48 	SmfEvent( const SmfEvent &aOther );
       
    49 	
       
    50 	/**
       
    51 	 * Overloaded = operator
       
    52 	 * @param aOther The reference object
       
    53 	 * @return The current object reference
       
    54 	 */
       
    55 	SmfEvent& operator=( const SmfEvent &aOther );
    51 	
    56 	
    52 	/**
    57 	/**
    53 	 * Destructor
    58 	 * Destructor
    54 	 */
    59 	 */
    55 	~SmfEvent( );
    60 	~SmfEvent( );
   132 	 * Method to set the URL for getting tickets for the event
   137 	 * Method to set the URL for getting tickets for the event
   133 	 * @param aUrl The new Url for getting ticket for the event
   138 	 * @param aUrl The new Url for getting ticket for the event
   134 	 */
   139 	 */
   135 	void setTicketUrl( const QUrl &aUrl );
   140 	void setTicketUrl( const QUrl &aUrl );
   136 	
   141 	
       
   142 	/**
       
   143 	 * Method to set the id of the event
       
   144 	 * @param aId The ID value 
       
   145 	 */
       
   146 	void setId( const QString &aId );
       
   147 	
   137 private:
   148 private:
   138 	QSharedDataPointer<SmfEventPrivate> d;
   149 	QSharedDataPointer<SmfEventPrivate> d;
   139 	
   150 	
   140 	friend QDataStream &operator<<( QDataStream &aDataStream, 
   151 	friend QDataStream &operator<<( QDataStream &aDataStream, 
   141 			const SmfEvent &aEvent );
   152 			const SmfEvent &aEvent );
   164  * @return reference to the stream
   175  * @return reference to the stream
   165  */
   176  */
   166 QDataStream &operator>>( QDataStream &aDataStream, 
   177 QDataStream &operator>>( QDataStream &aDataStream, 
   167 		SmfEvent &aEvent);
   178 		SmfEvent &aEvent);
   168 
   179 
       
   180 
       
   181 // Make the class SmfEvent known to QMetaType, so that as to register it.
       
   182 Q_DECLARE_METATYPE(SmfEvent)
       
   183 
       
   184 
   169 #endif /* SMFEVENT_H_ */
   185 #endif /* SMFEVENT_H_ */