123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- /***********************************************
- /gen auto by zuitools
- ***********************************************/
- #ifndef __FUNCTIONACTIVITY_H__
- #define __FUNCTIONACTIVITY_H__
- #include "app/Activity.h"
- #include "entry/EasyUIContext.h"
- #include "uart/ProtocolData.h"
- #include "uart/ProtocolParser.h"
- #include "utils/Log.h"
- #include "control/ZKDigitalClock.h"
- #include "control/ZKPainter.h"
- #include "control/ZKButton.h"
- #include "control/ZKCircleBar.h"
- #include "control/ZKDiagram.h"
- #include "control/ZKListView.h"
- #include "control/ZKPointer.h"
- #include "control/ZKQRCode.h"
- #include "control/ZKTextView.h"
- #include "control/ZKSeekBar.h"
- #include "control/ZKEditText.h"
- #include "control/ZKVideoView.h"
- #include "window/ZKSlideWindow.h"
- /*TAG:Macro宏ID*/
- #define ID_FUNCTION_ServerCancelButton 20010
- #define ID_FUNCTION_ServerConfirmButton 20009
- #define ID_FUNCTION_ServerPromptTextView 50009
- #define ID_FUNCTION_ServerTextView 50008
- #define ID_FUNCTION_ServerPortEditText 51003
- #define ID_FUNCTION_ServerIpEditText 51002
- #define ID_FUNCTION_ServerPainter 52006
- #define ID_FUNCTION_ServerWindow 110006
- #define ID_FUNCTION_PwdBackButton 20008
- #define ID_FUNCTION_PwdConfirmButton 20007
- #define ID_FUNCTION_PwdEditText 51001
- #define ID_FUNCTION_PwdPromptTextView 50007
- #define ID_FUNCTION_PwdTextView 50006
- #define ID_FUNCTION_PwdPainter 52005
- #define ID_FUNCTION_PwdWindow 110005
- #define ID_FUNCTION_CancelLogoutButton 20006
- #define ID_FUNCTION_ConfirmLogoutButton 20005
- #define ID_FUNCTION_LogoutTextView 50005
- #define ID_FUNCTION_LogoutPicPainter 52004
- #define ID_FUNCTION_LogoutWindow 110004
- #define ID_FUNCTION_FunctionButton 20004
- #define ID_FUNCTION_StateTextView 50004
- #define ID_FUNCTION_FunctionTextView 50003
- #define ID_FUNCTION_IconPainter 52003
- #define ID_FUNCTION_FunctionWindow 110003
- #define ID_FUNCTION_WarnWindow 110002
- #define ID_FUNCTION_backButton 20003
- #define ID_FUNCTION_WarnTextView 50002
- #define ID_FUNCTION_CancelCallButton 20002
- #define ID_FUNCTION_ConfirmCallButton 20001
- #define ID_FUNCTION_CallBedListView 80001
- #define ID_FUNCTION_CallBedTextView 50001
- #define ID_FUNCTION_CallBedPicPainter 52002
- #define ID_FUNCTION_CallBedWindow 110001
- #define ID_FUNCTION_FunctionPainter 52001
- /*TAG:Macro宏ID END*/
- class functionActivity : public Activity,
- public ZKSeekBar::ISeekBarChangeListener,
- public ZKListView::IItemClickListener,
- public ZKListView::AbsListAdapter,
- public ZKSlideWindow::ISlideItemClickListener,
- public EasyUIContext::ITouchListener,
- public ZKEditText::ITextChangeListener,
- public ZKVideoView::IVideoPlayerMessageListener
- {
- public:
- functionActivity();
- virtual ~functionActivity();
- /**
- * 注册定时器
- */
- void registerUserTimer(int id, int time);
- /**
- * 取消定时器
- */
- void unregisterUserTimer(int id);
- /**
- * 重置定时器
- */
- void resetUserTimer(int id, int time);
- protected:
- /*TAG:PROTECTED_FUNCTION*/
- virtual const char* getAppName() const;
- virtual void onCreate();
- virtual void onClick(ZKBase *pBase);
- virtual void onResume();
- virtual void onPause();
- virtual void onIntent(const Intent *intentPtr);
- virtual bool onTimer(int id);
- virtual void onProgressChanged(ZKSeekBar *pSeekBar, int progress);
- virtual int getListItemCount(const ZKListView *pListView) const;
- virtual void obtainListItemData(ZKListView *pListView, ZKListView::ZKListItem *pListItem, int index);
- virtual void onItemClick(ZKListView *pListView, int index, int subItemIndex);
- virtual void onSlideItemClick(ZKSlideWindow *pSlideWindow, int index);
- virtual bool onTouchEvent(const MotionEvent &ev);
- virtual void onTextChanged(ZKTextView *pTextView, const string &text);
- void rigesterActivityTimer();
- virtual void onVideoPlayerMessage(ZKVideoView *pVideoView, int msg);
- void videoLoopPlayback(ZKVideoView *pVideoView, int msg, size_t callbackTabIndex);
- void startVideoLoopPlayback();
- void stopVideoLoopPlayback();
- bool parseVideoFileList(const char *pFileListPath, std::vector<string>& mediaFileList);
- int removeCharFromString(string& nString, char c);
- private:
- /*TAG:PRIVATE_VARIABLE*/
- int mVideoLoopIndex;
- int mVideoLoopErrorCount;
- };
- #endif
|