2
0

channel.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef CHANNEL_H
  2. #define CHANNEL_H
  3. #include <QtCore>
  4. class Channel
  5. {
  6. public:
  7. Channel() {}
  8. Channel(QString uuid);
  9. QString getUuid() { return _uuid; }
  10. void setCidName(QString cidName) { _cidName = cidName; }
  11. QString getCidName() { return _cidName; }
  12. void setCidNumber(QString cidNumber) { _cidNumber = cidNumber; }
  13. QString getCidNumber() { return _cidNumber; }
  14. void setDestinatinonNumber(QString destinationNumber) { _destinationNumber = destinationNumber; }
  15. QString getDestinationNumber() { return _destinationNumber; }
  16. int getPaCallId() { return _paCallId; }
  17. void setPaCallId(int paCallId) { _paCallId = paCallId;}
  18. void setProgressEpoch(qulonglong time) { _progressEpoch = time/1000000; }
  19. qulonglong getProgressEpoch() { return _progressEpoch; }
  20. void setProgressMediaEpoch(qulonglong time) { _progressMediaEpoch = time/1000000; }
  21. qulonglong getProgressMediaEpoch() { return _progressMediaEpoch; }
  22. void setCreatedEpoch(qulonglong time) { _createdEpoch = time/1000000; }
  23. qulonglong getCreatedEpoch() { return _createdEpoch; }
  24. private:
  25. QString _uuid;
  26. QString _cidName;
  27. QString _cidNumber;
  28. QString _destinationNumber;
  29. int _paCallId;
  30. qulonglong _progressEpoch;
  31. qulonglong _progressMediaEpoch;
  32. qulonglong _createdEpoch;
  33. };
  34. Q_DECLARE_METATYPE(Channel)
  35. #endif // CHANNEL_H