--- a/smf/inc/common/smfevent/smfevent.h Thu Apr 15 15:40:08 2010 +0530
+++ b/smf/inc/common/smfevent/smfevent.h Thu Apr 22 15:18:37 2010 +0530
@@ -33,15 +33,13 @@
* @ingroup smf_common_group
* The event class represents an event
*/
-class SMFCLIENT_EXPORT SmfEvent : public QObject
+class SMFCLIENT_EXPORT SmfEvent
{
- Q_OBJECT
public:
/**
* Constructor with default argument
- * @param aParent The parent object
*/
- SmfEvent( QObject *aParent = 0 );
+ SmfEvent( );
/**
* Copy Constructor
@@ -50,6 +48,13 @@
SmfEvent( const SmfEvent &aOther );
/**
+ * Overloaded = operator
+ * @param aOther The reference object
+ * @return The current object reference
+ */
+ SmfEvent& operator=( const SmfEvent &aOther );
+
+ /**
* Destructor
*/
~SmfEvent( );
@@ -134,6 +139,12 @@
*/
void setTicketUrl( const QUrl &aUrl );
+ /**
+ * Method to set the id of the event
+ * @param aId The ID value
+ */
+ void setId( const QString &aId );
+
private:
QSharedDataPointer<SmfEventPrivate> d;
@@ -166,4 +177,9 @@
QDataStream &operator>>( QDataStream &aDataStream,
SmfEvent &aEvent);
+
+// Make the class SmfEvent known to QMetaType, so that as to register it.
+Q_DECLARE_METATYPE(SmfEvent)
+
+
#endif /* SMFEVENT_H_ */