Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
q/kdb+ 2.40 KB | None | 0 0
  1. class WFolder: public QObject
  2. {
  3.     Q_OBJECT
  4.  
  5.     Q_PROPERTY(QString name        READ name        WRITE setName)
  6.     Q_PROPERTY(QString pkey        READ pkey        WRITE setPkey)
  7.     Q_PROPERTY(QString id          READ id          WRITE setId)
  8.     Q_PROPERTY(QString folder_id   READ folder_id   WRITE setFolderId)
  9.     Q_PROPERTY(QString remote_id   READ remote_id   WRITE setRemoteId)
  10.     Q_PROPERTY(QString version     READ version     WRITE setVersion)
  11.     Q_PROPERTY(QString time_create READ time_create WRITE setTimeCreate)
  12.     Q_PROPERTY(QString time_modify READ time_modify WRITE setTimeModify)
  13.     Q_PROPERTY(QString status      READ status      WRITE setStatus)
  14.     Q_PROPERTY(QString sync_status READ sync_status WRITE setSyncStatus)
  15.     Q_PROPERTY(QString sync_error  READ sync_error  WRITE setSyncError)
  16.  
  17. public:
  18.     QString name       () const { return name_; }
  19.     QString pkey       () const { return pkey_; }
  20.     QString id         () const { return id_; }
  21.     QString folder_id  () const { return folder_id_; }
  22.     QString remote_id  () const { return remote_id_; }
  23.     QString version    () const { return version_; }
  24.     QString time_create() const { return time_create_; }
  25.     QString time_modify() const { return time_modify_; }
  26.     QString status     () const { return status_; }
  27.     QString sync_status() const { return sync_status_; }
  28.     QString sync_error () const { return sync_error_; }
  29.  
  30.  
  31. public slots:
  32.     void setName      (QString value) { name_        = value; }
  33.     void setPkey      (QString value) { pkey_        = value; }
  34.     void setId        (QString value) { id_          = value; }
  35.     void setFolderId  (QString value) { folder_id_   = value; }
  36.     void setRemoteId  (QString value) { remote_id_   = value; }
  37.     void setVersion   (QString value) { version_     = value; }
  38.     void setTimeCreate(QString value) { time_create_ = value; }
  39.     void setTimeModify(QString value) { time_modify_ = value; }
  40.     void setStatus    (QString value) { status_      = value; }
  41.     void setSyncStatus(QString value) { sync_status_ = value; }
  42.     void setSyncError (QString value) { sync_error_  = value; }
  43.  
  44.  
  45. private:
  46.     QString name_;
  47.     QString pkey_;
  48.     QString id_;
  49.     QString folder_id_;
  50.     QString remote_id_;
  51.     QString version_;
  52.     QString time_create_;
  53.     QString time_modify_;
  54.     QString status_;
  55.     QString sync_status_;
  56.     QString sync_error_;
  57.  
  58. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement