00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00018
00019
00020
00021 #ifndef __MX_IASYNCREBOOT_H__
00022 #define __MX_IASYNCREBOOT_H__
00023
00024
00025
00026 #define MX_IASYNCREBOOT_ID "IASyncReboot"
00027
00028
00029 #include "IInterface.h"
00030
00031 #include <mx_types.h>
00032
00033 #include <mxm/core/mxmStringList.h>
00034 #include <mxm/core/mxmQtSlot.h>
00035
00036
00037 namespace mx {
00038
00040
00043 class IAsyncReboot : public virtual IInterface {
00044
00045 public:
00046 static const u32 NoTimeout = (u32)(-1);
00047
00048
00049
00052 virtual bool isRebooting() = 0;
00053
00054
00059 virtual void reboot(const mxmQtSlot& slot,
00060 void* context,
00061 u32 UTimeOutMs = 60000) = 0;
00062
00070 virtual bool needReboot() = 0;
00071
00072
00073 };
00074
00075
00076 };
00077
00078
00079 #endif // __MX_IASYNCREBOOT_H__