1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XSessionManagerClient.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_frame_XSessionManagerClient_idl__
31 #define __com_sun_star_frame_XSessionManagerClient_idl__
33 #ifndef __com_sun_star_frame_XSessionManagerListener_idl__
34 #include
<com
/sun
/star
/frame
/XSessionManagerListener.idl
>
37 //=============================================================================
39 module com
{ module sun
{ module star
{ module frame
{
41 //=============================================================================
42 /** Connect to a session manager to get information about pending
46 interface XSessionManagerClient
: com
::sun
::star
::uno
::XInterface
49 /** addSessionManagerListener registers a listener for session management events
52 listener for session management events
54 @see XSessionManagerListener
55 @see XSessionManagerClient::removeSessionManagerListener()
57 [oneway
] void addSessionManagerListener
( [in] XSessionManagerListener xListener
);
59 /** removeSessionManagerListener deregisters a listener for session events
62 listener to be removed
64 @see XSessionManagerListener
65 @see XSessionManagerClient::addSessionManagerListener()
67 [oneway
] void removeSessionManagerListener
( [in] XSessionManagerListener xListener
);
69 /** queryInteraction issues a request for a user interaction slot
70 from the session manager
73 the listener requesting user interaction
75 @see XSessionManagerListener
77 [oneway
] void queryInteraction
( [in] XSessionManagerListener xListener
);
79 /** interactionDone is called when a listener has finished user interaction
82 the listener done with user interaction
84 @see XSessionManagerListener
86 [oneway
] void interactionDone
( [in] XSessionManagerListener xListener
);
88 /** saveDone signals that a listener has processed a save request
91 the listener having finished save request processing
93 @see XSessionManagerListener
95 [oneway
] void saveDone
( [in] XSessionManagerListener xListener
);
97 /** Call cancelShutdown to try to cancel a desktop shutdown in progress
100 <TRUE/> if shutdown was canceled,
103 boolean cancelShutdown
();