Kaydet (Commit) 2a5fc950 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Some further clean-up of X Session Management code

Change-Id: I0cc47b152835d69e90226f42609eabe5291f55f3
üst 4cffdb68
...@@ -32,21 +32,25 @@ ...@@ -32,21 +32,25 @@
#include <X11/SM/SMlib.h> #include <X11/SM/SMlib.h>
#include "boost/scoped_ptr.hpp"
#include "tools/link.hxx" #include "tools/link.hxx"
#include "vclpluginapi.h" #include "vclpluginapi.h"
namespace rtl { namespace rtl {
class OString; class OString;
class OUString; class OUString;
} }
class ICEConnectionObserver;
class SalSession; class SalSession;
class SessionManagerClient class SessionManagerClient
{ {
static SalSession * m_pSession; static SalSession * m_pSession;
static SmcConn aSmcConnection; static boost::scoped_ptr< ICEConnectionObserver > m_pICEConnectionObserver;
static SmcConn m_pSmcConnection;
static rtl::OString m_aClientID; static rtl::OString m_aClientID;
static bool bDocSaveDone; static bool m_bDocSaveDone;
static void SaveYourselfProc( SmcConn connection, static void SaveYourselfProc( SmcConn connection,
SmPointer client_data, SmPointer client_data,
...@@ -63,7 +67,7 @@ class SessionManagerClient ...@@ -63,7 +67,7 @@ class SessionManagerClient
static void InteractProc( SmcConn connection, static void InteractProc( SmcConn connection,
SmPointer clientData ); SmPointer clientData );
static const rtl::OString& getPreviousSessionID(); static rtl::OString getPreviousSessionID();
DECL_STATIC_LINK( SessionManagerClient, ShutDownHdl, void* ); DECL_STATIC_LINK( SessionManagerClient, ShutDownHdl, void* );
DECL_STATIC_LINK( SessionManagerClient, ShutDownCancelHdl, void* ); DECL_STATIC_LINK( SessionManagerClient, ShutDownCancelHdl, void* );
...@@ -79,7 +83,7 @@ public: ...@@ -79,7 +83,7 @@ public:
static void interactionDone( bool bCancelShutdown ); static void interactionDone( bool bCancelShutdown );
static rtl::OUString getExecName(); static rtl::OUString getExecName();
static VCLPLUG_GEN_PUBLIC const rtl::OString& getSessionID(); static VCLPLUG_GEN_PUBLIC rtl::OString getSessionID();
}; };
#endif #endif
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment