00001 /* 00002 * Copyright © 2005 Novell, Inc. 00003 * 00004 * Permission to use, copy, modify, distribute, and sell this software 00005 * and its documentation for any purpose is hereby granted without 00006 * fee, provided that the above copyright notice appear in all copies 00007 * and that both that copyright notice and this permission notice 00008 * appear in supporting documentation, and that the name of 00009 * Novell, Inc. not be used in advertising or publicity pertaining to 00010 * distribution of the software without specific, written prior permission. 00011 * Novell, Inc. makes no representations about the suitability of this 00012 * software for any purpose. It is provided "as is" without express or 00013 * implied warranty. 00014 * 00015 * NOVELL, INC. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 00016 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN 00017 * NO EVENT SHALL NOVELL, INC. BE LIABLE FOR ANY SPECIAL, INDIRECT OR 00018 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00019 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 00020 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 00021 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 00022 * 00023 * Author: Radek Doulik <rodo@novell.com> 00024 */ 00025 00026 #ifndef _COMPSESSION_H 00027 #define _COMPSESSION_H 00028 00029 #define SN_API_NOT_YET_FROZEN 00030 #include <libsn/sn.h> 00031 00032 namespace CompSession { 00033 00034 enum Event { 00035 EventSaveYourself = 0, 00036 EventSaveComplete, 00037 EventDie, 00038 EventShutdownCancelled 00039 }; 00040 00041 enum ClientIdType { 00042 ClientId = 0, 00043 PrevClientId 00044 }; 00045 00046 void init (char *prevClientId); 00047 00048 void close (); 00049 00050 CompString getClientId (ClientIdType type); 00051 }; 00052 00053 #endif