#ifndef CSMSMESSAGE_H
#define CSMSMESSAGE_H

#include "GlobalDefine.h"
#include <QString>
#include <QDateTime>

typedef enum eSMSType
{
    SMS_SENT_TYPE,
    SMS_RECEIVED_TYPE,
    SMS_INVALID_TYPE
}SmsType_t;

class CSMSMessage
{

public:
    CSMSMessage();

     /*qint64*/QString mVOIPMSDatabaseID;
     QDateTime mDateTime;
     SmsType_t mType;
     QString mDID, mContact, mMessageText;



//    [id] => 111120
//                        [date] => 2014-03-30 10:24:16
//                        [type] => 0
//                        [did] => 8574884828
//                        [contact] => 8577884821
//                        [message] => hello+john

};

QDataStream &operator<<(QDataStream &out, const CSMSMessage &source);
QDataStream &operator>>(QDataStream &in, CSMSMessage &dest);

#endif // CSMSOBJECT_H
