Index: sources/cloudsync/CloudSyncController.h =================================================================== diff -u -r3f60b9a1c0b3a43ec1c5c72955dce0d80354e35c -r1c23a7f4c576dd70c2bfb94a85af470b7d641f1e --- sources/cloudsync/CloudSyncController.h (.../CloudSyncController.h) (revision 3f60b9a1c0b3a43ec1c5c72955dce0d80354e35c) +++ sources/cloudsync/CloudSyncController.h (.../CloudSyncController.h) (revision 1c23a7f4c576dd70c2bfb94a85af470b7d641f1e) @@ -93,11 +93,13 @@ eError_LogFolder , eError_LogFileInp , - eError_CredentialMake , - eError_CredentialFile , - eError_CredentialCopy , - eError_CredentialRemove , + eError_CredentialMake , // the UI vault folder for cloudsync credentials can't be created. + eError_CredentialFile , // the credential files sent to UI can't be find or read or doesn't exist.. + eError_CredentialCopy , // the credential files sent to UI can't be copied to UI vault. + eError_CredentialRemove , // the credential files sent to UI can't be removed. + eError_CredentialEmpty , // the UI folder doesn't have credential files. + eError_OutFileEmpty , // Out file has changed from CS2UI but the content is empty. }; @@ -166,20 +168,24 @@ protected: void timerEvent(QTimerEvent *event) override; - + bool event(QEvent* vEvent) override; public slots: bool init(); bool init(QThread &vThread); private slots: void quit(); - void onWatchFileChange (const QString &vFile); - void onActionReceive (GuiActionType vAction, const QVariantList &vData); - void onTreatmentLogSave (const QString &vPatientID , - const QString &vDeviceID , - const QString &vFileName ); + void onWatchFileChange (const QString &vFile); + void onActionReceive (GuiActionType vAction, const QVariantList &vData); + void onTreatmentLogSave(const QString &vPatientID , + const QString &vDeviceID , + const QString &vFileName ); + void onInitComplete (); +signals: + void didInitComplete (); + private: void initConnections();