2
* psioptions.h - Psi options class
3
* Copyright (C) 2006 Kevin Smith
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this library; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
#ifndef _PSIOPTIONS_H_
22
#define _PSIOPTIONS_H_
24
#include "optionstree.h"
26
// Some hard coded options
27
#define MINIMUM_OPACITY 10
34
class PsiOptions : public OptionsTree//, QObject
38
static PsiOptions* instance();
40
bool load(QString file);
41
void load(XMPP::Client* client);
42
bool save(QString file);
43
void autoSave(bool autoSave, QString autoFile = "");
50
void saveToAutoFile();
51
void getOptionsStorage_finished();
55
static PsiOptions* instance_;
58
#endif /* _PSIOPTIONS_H_ */