ede/evoke/EvokeService.h

62 lines
1.3 KiB
C
Raw Normal View History

2009-02-19 11:12:29 +03:00
/*
* $Id$
*
* Evoke, head honcho of everything
* Part of Equinox Desktop Environment (EDE).
* Copyright (c) 2007-2009 EDE Authors.
*
* This program is licensed under terms of the
* GNU General Public License version 2 or newer.
* See COPYING for details.
*/
#ifndef __EVOKESERVICE_H__
#define __EVOKESERVICE_H__
#include <FL/x.H>
#include <edelib/List.h>
#include <edelib/String.h>
struct StartupItem {
edelib::String exec;
edelib::String icon;
edelib::String description;
};
typedef edelib::list<StartupItem*> StartupItemList;
typedef edelib::list<StartupItem*>::iterator StartupItemListIter;
2009-02-19 11:12:29 +03:00
class Xsm;
class EvokeService {
2009-02-24 19:27:38 +03:00
private:
char* lock_name;
Xsm* xsm;
bool is_running;
StartupItemList startup_items;
edelib::String splash_theme;
void clear_startup_items(void);
public:
EvokeService();
~EvokeService();
static EvokeService* instance(void);
bool setup_lock(const char* name);
void remove_lock(void);
void start(void) { is_running = true; }
void stop(void) { is_running = false; }
bool running(void) { return is_running; }
void read_startup(void);
void run_startup(bool splash, bool dryrun);
int handle(const XEvent* xev);
void start_xsettings_manager(void);
void stop_xsettings_manager(bool serialize);
2009-02-19 11:12:29 +03:00
};
#endif