1 /*
2     pipesconfig.h
3 
4     Copyright (c) 2007      by Charles Connell <charles@connells.org>
5 
6     Kopete    (c) 2007      by the Kopete developers  <kopete-devel@kde.org>
7 
8     *************************************************************************
9     *                                                                       *
10     * This program is free software; you can redistribute it and/or modify  *
11     * it under the terms of the GNU General Public License as published by  *
12     * the Free Software Foundation; either version 2 of the License, or     *
13     * (at your option) any later version.                                   *
14     *                                                                       *
15     *************************************************************************
16 */
17 #ifndef PIPESCONFIG_H
18 #define PIPESCONFIG_H
19 
20 #include "pipesplugin.h"
21 
22 /**
23  * Static config storage. Ballin'.
24  * @author Charles Connell <charles@connells.org>
25  */
26 
27 class PipesConfig
28 {
29 public:
30     static PipesConfig *self();
31     static PipesPlugin::PipeOptionsList pipes();
32     static void setPipes(PipesPlugin::PipeOptionsList);
33     void save();
34     void load();
35 
36 private:
37     PipesConfig();
38 
39     PipesPlugin::PipeOptionsList mPipesList;
40     static PipesConfig *mSelf;
41 };
42 
43 #endif
44