summaryrefslogtreecommitdiff
path: root/vcl/inc/vcl/svapp.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-11-03 17:45:47 +0100
committerStephan Bergmann <sbergman@redhat.com>2011-11-04 08:21:26 +0100
commite66e54fb00bf74d13b7059bd32b6207a029afa5e (patch)
tree05a1a0e9c5cf4c889537cd3e616598effa0a85c1 /vcl/inc/vcl/svapp.hxx
parente04249337551653f63ba9b2a2302578961e38562 (diff)
Further clean up of areas touched by previous commit.
Diffstat (limited to 'vcl/inc/vcl/svapp.hxx')
-rw-r--r--vcl/inc/vcl/svapp.hxx35
1 files changed, 13 insertions, 22 deletions
diff --git a/vcl/inc/vcl/svapp.hxx b/vcl/inc/vcl/svapp.hxx
index fb32a8ba245c..ccd232ca5997 100644
--- a/vcl/inc/vcl/svapp.hxx
+++ b/vcl/inc/vcl/svapp.hxx
@@ -97,36 +97,27 @@ typedef long (*VCLEventHookProc)( NotifyEvent& rEvt, void* pData );
enum Service { SERVICE_OLE, SERVICE_APPEVENT, SERVICE_IPC };
#endif
-#define APPEVENT_OPEN_STRING "Open"
-#define APPEVENT_PRINT_STRING "Print"
-
class VCL_DLLPUBLIC ApplicationEvent
{
- rtl::OUString aEvent;
- rtl::OUString aData;
- std::vector<rtl::OUString> aParams;
-
- ApplicationEvent();
public:
- ApplicationEvent(const rtl::OUString& rEvent,
+ enum Type {
+ TYPE_ACCEPT, TYPE_APPEAR, TYPE_HELP, TYPE_OPEN, TYPE_OPENHELPURL,
+ TYPE_PRINT, TYPE_PRIVATE_DOSHUTDOWN, TYPE_QUICKSTART, TYPE_SHOWDIALOG,
+ TYPE_UNACCEPT
+ };
+
+ ApplicationEvent(Type rEvent,
const rtl::OUString& rData = rtl::OUString()):
aEvent(rEvent),
aData(rData)
- {
- sal_Int32 start = 0;
- for(sal_Int32 i = 0; i < rData.getLength(); ++i)
- {
- if(rData[i] == '\n')
- {
- aParams.push_back(rData.copy(start, i - start));
- start = ++i;
- }
- }
- }
+ {}
- const rtl::OUString& GetEvent() const { return aEvent; }
+ Type GetEvent() const { return aEvent; }
const rtl::OUString& GetData() const { return aData; }
- const std::vector<rtl::OUString>& GetParams() const { return aParams; }
+
+private:
+ Type aEvent;
+ rtl::OUString aData;
};
class VCL_DLLPUBLIC PropertyHandler