Subversion Repositories tpanel

Rev

Rev 141 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 141 Rev 142
Line 143... Line 143...
143
        void regSetPhoneStatus(std::function<void (const std::string& msg)> setPhoneStatus) { _setPhoneStatus = setPhoneStatus; }
143
        void regSetPhoneStatus(std::function<void (const std::string& msg)> setPhoneStatus) { _setPhoneStatus = setPhoneStatus; }
144
        void regSetPhoneState(std::function<void (int state, int id)> setPhoneState) { _setPhoneState = setPhoneState; }
144
        void regSetPhoneState(std::function<void (int state, int id)> setPhoneState) { _setPhoneState = setPhoneState; }
145
#ifdef __ANDROID__
145
#ifdef __ANDROID__
146
        void regOnOrientationChange(std::function<void (int orientation)> orientationChange) { _onOrientationChange = orientationChange; }
146
        void regOnOrientationChange(std::function<void (int orientation)> orientationChange) { _onOrientationChange = orientationChange; }
147
#endif
147
#endif
-
 
148
        void regRepaintWindows(std::function<void ()> repaintWindows) { _repaintWindows = repaintWindows; }
-
 
149
 
148
        /**
150
        /**
149
         * The following function must be called to start non graphics part
151
         * The following function must be called to start non graphics part
150
         * of the panel simulator. If everything worked well, it returns TRUE.
152
         * of the panel simulator. If everything worked well, it returns TRUE.
151
         * otherwise a FALSE is returned and the program should be terminated.
153
         * otherwise a FALSE is returned and the program should be terminated.
152
         */
154
         */
Line 276... Line 278...
276
        std::function<void (const std::string& msg)> getSetPhoneStatus() { return _setPhoneStatus; }
278
        std::function<void (const std::string& msg)> getSetPhoneStatus() { return _setPhoneStatus; }
277
        std::function<void (int state, int id)> getSetPhoneState() { return _setPhoneState; }
279
        std::function<void (int state, int id)> getSetPhoneState() { return _setPhoneState; }
278
#ifdef __ANDROID__
280
#ifdef __ANDROID__
279
        std::function<void (int orientation)> onOrientationChange() { return _onOrientationChange; }
281
        std::function<void (int orientation)> onOrientationChange() { return _onOrientationChange; }
280
#endif
282
#endif
-
 
283
        std::function<void ()> getRepaintWindows() { return _repaintWindows; }
281
        int getOrientation() { return mOrientation; }
284
        int getOrientation() { return mOrientation; }
282
        void setOrientation(int ori) { mOrientation = ori; }
285
        void setOrientation(int ori) { mOrientation = ori; }
283
        bool getInformOrientation() { return mInformOrientation; }
286
        bool getInformOrientation() { return mInformOrientation; }
284
        void sendOrientation();
287
        void sendOrientation();
285
        bool havePlaySound() { return _playSound != nullptr; }
288
        bool havePlaySound() { return _playSound != nullptr; }
Line 334... Line 337...
334
        std::function<void (const std::string& str)> _sendVirtualKeys{nullptr};
337
        std::function<void (const std::string& str)> _sendVirtualKeys{nullptr};
335
        std::function<void (bool state)> _showPhoneDialog{nullptr};
338
        std::function<void (bool state)> _showPhoneDialog{nullptr};
336
        std::function<void (const std::string& number)> _setPhoneNumber{nullptr};
339
        std::function<void (const std::string& number)> _setPhoneNumber{nullptr};
337
        std::function<void (const std::string& msg)> _setPhoneStatus{nullptr};
340
        std::function<void (const std::string& msg)> _setPhoneStatus{nullptr};
338
        std::function<void (int state, int id)> _setPhoneState{nullptr};
341
        std::function<void (int state, int id)> _setPhoneState{nullptr};
-
 
342
        std::function<void ()> _repaintWindows{nullptr};
339
#ifdef __ANDROID__
343
#ifdef __ANDROID__
340
        std::function<void (int orientation)> _onOrientationChange{nullptr};
344
        std::function<void (int orientation)> _onOrientationChange{nullptr};
341
#endif
345
#endif
342
        /**
346
        /**
343
         * @brief doOverlap checks for overlapping objects
347
         * @brief doOverlap checks for overlapping objects