X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftoolkit-clipboard-event-notifier.h;h=d167dc84f08fdf4268d5d8d65a88756aef75b444;hb=2bba426880bd73a3b763623a3b32c3bd23b7dd90;hp=15d7b168014e3dd6ab79e53e012b916a4e9415d1;hpb=b987c87a4fb8f149be93e84e520a0a6ac3866343;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-clipboard-event-notifier.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-clipboard-event-notifier.h index 15d7b16..d167dc8 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-clipboard-event-notifier.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-clipboard-event-notifier.h @@ -22,7 +22,10 @@ #include // PUBLIC INCLUDES -#include +#define __DALI_CLIPBOARD_EVENT_NOTIFIER_H__ +#include +#include + namespace Dali { @@ -35,33 +38,23 @@ class ClipboardEventNotifier; } } -/** - * This creates a stubbed ClipboardEventNotifier so that internal Toolkit Adaptor calls work. - */ -class ToolkitClipboardEventNotifier +class ClipboardEventNotifier : public BaseHandle { -public: // Constants - -public: // Construction & Destruction - - ToolkitClipboardEventNotifier(); - ~ToolkitClipboardEventNotifier(); - -public: // Getters - - ClipboardEventNotifier GetClipboardEventNotifier(); - -public: // Signal Emissions +public: + typedef Signal< void ( ClipboardEventNotifier& ) > ClipboardEventSignalType; - ClipboardEventNotifier::ClipboardEventSignalV2& SignalContentSelected(); + ClipboardEventNotifier(); + static ClipboardEventNotifier Get(); + ~ClipboardEventNotifier(); -public: // TEST FUNCTIONS + const std::string& GetContent() const; + void SetContent( const std::string& content ); + void ClearContent(); -private: + void EmitContentSelectedSignal(); + ClipboardEventSignalType& ContentSelectedSignal(); - Internal::Adaptor::ClipboardEventNotifier* mClipboardEventNotifierStub; - friend class Internal::Adaptor::ClipboardEventNotifier; - ClipboardEventNotifier mClipboardEventNotifier; // Hold a handle ourselves. + ClipboardEventNotifier( Internal::Adaptor::ClipboardEventNotifier* notifier ); }; } // namespace Dali