[l10n] Updated German doc translation
[dasher.git] / Src / Win32 / DasherAction.h
blob01448f8886cd35d6c2381f428c33f0feff8a5885
1 #ifndef __DasherAction_h__
2 #define __DasherAction_h__
4 #include <string>
6 class CDasherAction {
7 public:
8 // Return the human readable name for this action
9 virtual std::string GetName() = 0;
11 // Activate the action (eg load any required resources)
12 virtual bool Activate() = 0;
14 // Deactivate the action (deallocate resources etc)
15 virtual bool Deactivate() = 0;
17 // Return whether or not the action is active
18 virtual bool GetActive() = 0;
20 // Execute the action
21 virtual bool Execute(const std::wstring &strText) = 0;
23 // `Preview' the action (eg word by word speech)
24 virtual void Preview(const std::wstring &strText) {};
27 #endif