123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- /***********************************************
- /gen auto by zuitools
- ***********************************************/
- #ifndef __PROMPTACTIVITY_H__
- #define __PROMPTACTIVITY_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 "control/ZKRadioGroup.h"
- #include "window/ZKSlideWindow.h"
- /*TAG:Macro宏ID*/
- #define ID_PROMPT_QuickPromptListView 80001
- #define ID_PROMPT_PromptTextView 50008
- #define ID_PROMPT_PromptPainter 52004
- #define ID_PROMPT_ExitPromptButton 20002
- #define ID_PROMPT_PromptWindow 110002
- #define ID_PROMPT_sys_back 100
- #define ID_PROMPT_StartPromptButton 20001
- #define ID_PROMPT_SetPromptTimeRadioButton6 22007
- #define ID_PROMPT_SetPromptTimeRadioButton5 22012
- #define ID_PROMPT_SetPromptTimeRadioButton4 22011
- #define ID_PROMPT_SetPromptTimeRadioButton3 22010
- #define ID_PROMPT_SetPromptTimeRadioButton2 22009
- #define ID_PROMPT_SetPromptTimeRadioButton1 22008
- #define ID_PROMPT_SetPromptTimeRadioGroup 94002
- #define ID_PROMPT_SetPromptTimeTextView 50007
- #define ID_PROMPT_SetPromptTimeStartTextView 50006
- #define ID_PROMPT_SetPromptTimePainter 52003
- #define ID_PROMPT_QuickPromptTextView 50005
- #define ID_PROMPT_QuickPromptStartTextView 50004
- #define ID_PROMPT_QuickPromptPainter 52002
- #define ID_PROMPT_CustomInputEditText 51001
- #define ID_PROMPT_CustomInputTextView 50002
- #define ID_PROMPT_CustomInputStartTextView 50003
- #define ID_PROMPT_CustomInputPainter 52001
- #define ID_PROMPT_SetPromptTextView 50001
- #define ID_PROMPT_SetPromptWindow 110001
- /*TAG:Macro宏ID END*/
- class promptActivity : public Activity,
- public ZKSeekBar::ISeekBarChangeListener,
- public ZKListView::IItemClickListener,
- public ZKListView::AbsListAdapter,
- public ZKSlideWindow::ISlideItemClickListener,
- public EasyUIContext::ITouchListener,
- public ZKRadioGroup::ICheckedChangeListener,
- public ZKEditText::ITextChangeListener,
- public ZKVideoView::IVideoPlayerMessageListener
- {
- public:
- promptActivity();
- virtual ~promptActivity();
- /**
- * 注册定时器
- */
- 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 onCheckedChanged(ZKRadioGroup* pRadioGroup, int checkedID);
- 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
|