module com { module sun { module star { module frame {
/** The SessionManager service provides an interface to the session manager ofthedesktop.Asessionmanagerkeepstrackofapplicationsthatare runningwhenthedesktopshutsdownandstartsthemagaininthesame statetheywereleftwhenthedesktopstartsupthenexttime.Tobeable todothisthesessionmanagerneedscooperationfromapplications; applicationshavetoprovidesufficientinformationtobestartedagainas wellasrestorethestatetheywereleftin.Thenormalflowofoperation lookslikethis:
<ol> <li>Theuserstartsthedesktopshutdown.</li> <li>Thesessionmanagerinformsallitsconnectedapplications aboutthependingshutdown.</li> <li>Eachapplicationsavesitscurrentstate;whiledoingthisitmay <ul> <li>Theapplicationmayrequesttointeractwiththeuser(e.g.toask wheretosavedocuments).Thisrequestisnecessarybecauseatanyone timeonlyoneapplicationcaninteractwiththeuser.Thesessionmanager coordinatestheserequestsandgrantseveryapplicationinneedofuser interactionatimeslotinwhichitmayinteractwiththeuser</li> <li>trytocancelthewholeshutdown;thesessionmanagermayormay nothonorthatrequest.</li> </ul> </li> <li>Aftersavingisdonethesessionmanagersignalsallapplications toexit.</li> <li>Applicationsanswertheexitmessagebydisconnectingfromthe sessionmanager.</li> <li>Afterallapplicationshaveexitedorareasonabletimeoutthe sessionmanagerkillsallremainingapplicationsandfinallyletsthe desktopshutdown.</li> </ol>
*/
service SessionManager
{ /** XSessionManagerClient (of which there can only be one instance per process)providesanapplication'sinterfacetothesessionmanager. Itkeepstrackofeverylistenerinsidetheapplicationandmultiplexes thesessionmanager'ssignalsaswellasrequeststothesessionmanager.
*/
interface XSessionManagerClient;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.