|
@@ -4,6 +4,11 @@
|
|
|
#include "functionActivity.h"
|
|
|
|
|
|
/*TAG:GlobalVariable全局变量*/
|
|
|
+static ZKButton* mRebootDeviceButtonPtr;
|
|
|
+static ZKButton* mRebootPowerButtonPtr;
|
|
|
+static ZKTextView* mRebootDeviceTextViewPtr;
|
|
|
+static ZKTextView* mRebootPowerTextViewPtr;
|
|
|
+static ZKWindow* mRebootWindowPtr;
|
|
|
static ZKButton* mServerCancelButtonPtr;
|
|
|
static ZKButton* mServerConfirmButtonPtr;
|
|
|
static ZKTextView* mServerPromptTextViewPtr;
|
|
@@ -76,6 +81,8 @@ typedef struct {
|
|
|
|
|
|
/*TAG:ButtonCallbackTab按键映射表*/
|
|
|
static S_ButtonCallback sButtonCallbackTab[] = {
|
|
|
+ ID_FUNCTION_RebootDeviceButton, onButtonClick_RebootDeviceButton,
|
|
|
+ ID_FUNCTION_RebootPowerButton, onButtonClick_RebootPowerButton,
|
|
|
ID_FUNCTION_ServerCancelButton, onButtonClick_ServerCancelButton,
|
|
|
ID_FUNCTION_ServerConfirmButton, onButtonClick_ServerConfirmButton,
|
|
|
ID_FUNCTION_PwdBackButton, onButtonClick_PwdBackButton,
|
|
@@ -162,6 +169,11 @@ functionActivity::~functionActivity() {
|
|
|
unregisterProtocolDataUpdateListener(onProtocolDataUpdate);
|
|
|
onUI_quit();
|
|
|
mActivityPtr = NULL;
|
|
|
+ mRebootDeviceButtonPtr = NULL;
|
|
|
+ mRebootPowerButtonPtr = NULL;
|
|
|
+ mRebootDeviceTextViewPtr = NULL;
|
|
|
+ mRebootPowerTextViewPtr = NULL;
|
|
|
+ mRebootWindowPtr = NULL;
|
|
|
mServerCancelButtonPtr = NULL;
|
|
|
mServerConfirmButtonPtr = NULL;
|
|
|
mServerPromptTextViewPtr = NULL;
|
|
@@ -206,6 +218,11 @@ const char* functionActivity::getAppName() const{
|
|
|
//TAG:onCreate
|
|
|
void functionActivity::onCreate() {
|
|
|
Activity::onCreate();
|
|
|
+ mRebootDeviceButtonPtr = (ZKButton*)findControlByID(ID_FUNCTION_RebootDeviceButton);
|
|
|
+ mRebootPowerButtonPtr = (ZKButton*)findControlByID(ID_FUNCTION_RebootPowerButton);
|
|
|
+ mRebootDeviceTextViewPtr = (ZKTextView*)findControlByID(ID_FUNCTION_RebootDeviceTextView);
|
|
|
+ mRebootPowerTextViewPtr = (ZKTextView*)findControlByID(ID_FUNCTION_RebootPowerTextView);
|
|
|
+ mRebootWindowPtr = (ZKWindow*)findControlByID(ID_FUNCTION_RebootWindow);
|
|
|
mServerCancelButtonPtr = (ZKButton*)findControlByID(ID_FUNCTION_ServerCancelButton);
|
|
|
mServerConfirmButtonPtr = (ZKButton*)findControlByID(ID_FUNCTION_ServerConfirmButton);
|
|
|
mServerPromptTextViewPtr = (ZKTextView*)findControlByID(ID_FUNCTION_ServerPromptTextView);
|