J-F Martel 8f5a0f68ff dev
2016-01-24 10:25:54 -05:00

41 lines
818 B
C++

#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