1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
// appconf.hh for bbappconf - an tool to display new mail in X11.
//
// this program is free software; you can redistribute it and/or modify
// it under the terms of the gnu general public license as published by
// the free software foundation; either version 2 of the license, or
// (at your option) any later version.
//
// this program is distributed in the hope that it will be useful,
// but without any warranty; without even the implied warranty of
// merchantability or fitness for a particular purpose. see the
// gnu general public license for more details.
//
// you should have received a copy of the gnu general public license
// along with this program; if not, write to the free software
// foundation, inc., 675 mass ave, cambridge, ma 02139, usa.
//
// (see the included file copying / gpl-2.0)
//
#ifndef __APPCONF_HH
#define __APPCONF_HH
#include "bbappconf.hh"
class AppConf {
public:
AppConf(void);
~AppConf(void);
void LoadAppName(char *);
void LoadAppClass(char *);
bool getSticky(void) { return sticky;}
bool getDecorless(void) { return decorless;}
unsigned int getStartOnDesktop(void) { return start_on_desktop;}
bool getMaxHoriz(void) { return max_horiz;}
bool getMaxVert(void) {return max_vert;}
int getPositionX(void) {return position_x;}
int getPositionY(void) {return position_y;}
int getWidth(void) {return width;}
int getHeight(void) {return height;}
char *getName(void) { return appname;}
char *getClass(void) { return appclass;}
void setSticky(bool _sticky) {sticky=_sticky;}
void setDecorless(bool _decorless) {decorless=_decorless;}
void setMaxVert(bool _max_vert) {max_vert=_max_vert;}
void setMaxHoriz(bool _max_horiz) {max_horiz=_max_horiz;}
void setStartOnDesktop(unsigned int _start_on_desktop)
{start_on_desktop=_start_on_desktop;}
void setPositionX(int _position_x) {position_x=_position_x;}
void setPositionY(int _position_y) {position_y=_position_y;}
void setWidth(int _width) {width=_width;}
void setHeight(int _height) {height=_height;}
private:
bool sticky;
bool decorless;
bool max_horiz;
bool max_vert;
unsigned int start_on_desktop;
int position_x, position_y;
int width, height;
char *appname;
char *appclass;
};
#endif /* __APPCONF_H */
|