diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-06-19 13:14:43 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-06-20 14:44:05 +0200 |
commit | 5c9872de884bcc3f1ec7cd6901b9440eec270d6d (patch) | |
tree | 94cc4d0a09a379dbef830be33890d48fb7c9a9a5 | |
parent | 34a3f6e8b7604612749d4f700a5db6d380bd0829 (diff) |
Move IceSalSession declaration to sm.cxx
Change-Id: I532e27b873e011aacebc1dd405de6d2e182ca3d4
-rw-r--r-- | vcl/inc/unx/sm.hxx | 29 | ||||
-rw-r--r-- | vcl/unx/generic/app/sm.cxx | 18 |
2 files changed, 28 insertions, 19 deletions
diff --git a/vcl/inc/unx/sm.hxx b/vcl/inc/unx/sm.hxx index 8e47c9aeea0c..13291d1f305d 100644 --- a/vcl/inc/unx/sm.hxx +++ b/vcl/inc/unx/sm.hxx @@ -28,14 +28,19 @@ #ifndef _VCL_SM_HXX #define _VCL_SM_HXX -#include <rtl/string.hxx> -#include <rtl/ustring.hxx> -#include "tools/link.hxx" -#include "unx/salunx.h" +#include "sal/config.h" + #include <X11/SM/SMlib.h> -#include "salsession.hxx" + +#include "tools/link.hxx" #include "vclpluginapi.h" +namespace rtl { + class OString; + class OUString; +} +class SalSession; + class SessionManagerClient { static SalSession * m_pSession; @@ -77,20 +82,6 @@ public: static VCLPLUG_GEN_PUBLIC const rtl::OString& getSessionID(); }; -class SalFrame; - -class IceSalSession : public SalSession -{ -public: - IceSalSession(); - virtual ~IceSalSession(); - - virtual void queryInteraction(); - virtual void interactionDone(); - virtual void saveDone(); - virtual bool cancelShutdown(); -}; - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/unx/generic/app/sm.cxx b/vcl/unx/generic/app/sm.cxx index 1f8debf3e209..8ba6e9cd2082 100644 --- a/vcl/unx/generic/app/sm.cxx +++ b/vcl/unx/generic/app/sm.cxx @@ -56,6 +56,24 @@ #include <vcl/svapp.hxx> #include <vcl/window.hxx> +#include "salsession.hxx" + +namespace { + +class IceSalSession : public SalSession +{ +public: + IceSalSession(); + virtual ~IceSalSession(); + + virtual void queryInteraction(); + virtual void interactionDone(); + virtual void saveDone(); + virtual bool cancelShutdown(); +}; + +} + SalSession* X11SalInstance::CreateSalSession() { SalSession * p = new IceSalSession; |