Use correct namespace for focus policies.
[basket4.git] / src / global.h
blob491fc43c0f5af95cba25c9b1caf579e4ca6173eb
1 /***************************************************************************
2 * Copyright (C) 2003 by S�astien Laot *
3 * slaout@linux62.org *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
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. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
21 #ifndef GLOBAL_H
22 #define GLOBAL_H
24 #include <qstring.h>
25 #include "aboutdata.h"
27 class LikeBack;
28 class DebugWindow;
29 class BackgroundManager;
30 class SystemTray;
31 class BNPView;
32 class KGlobalAccel;
33 class KMainWindow;
34 class KAboutData;
36 /** Handle all global variables of the application.
37 * This file only declare classes : developer should include
38 * the .h files of variables he use.
39 * @author S�astien Laot
41 class Global
43 private:
44 static QString s_customSavesFolder;
45 public:
46 // Global Variables:
47 static LikeBack *likeBack;
48 static DebugWindow *debugWindow;
49 static BackgroundManager *backgroundManager;
50 static SystemTray *systemTray;
51 static BNPView *bnpView;
52 static KGlobalAccel *globalAccel;
53 static KConfig *basketConfig;
54 static AboutData basketAbout;
56 // Application Folders:
57 static void setCustomSavesFolder(const QString &folder);
58 static QString savesFolder(); /// << @return e.g. "/home/username/.kde/share/apps/basket/".
59 static QString basketsFolder(); /// << @return e.g. "/home/username/.kde/share/apps/basket/baskets/".
60 static QString backgroundsFolder(); /// << @return e.g. "/home/username/.kde/share/apps/basket/backgrounds/".
61 static QString templatesFolder(); /// << @return e.g. "/home/username/.kde/share/apps/basket/templates/".
62 static QString tempCutFolder(); /// << @return e.g. "/home/username/.kde/share/apps/basket/temp-cut/". (was ".tmp/")
64 // Various Things:
65 static QString openNoteIcon(); /// << @return the icon used for the "Open" action on notes.
66 static KMainWindow* mainWindow();
67 static KConfig* config();
68 static KAboutData* about() { return &basketAbout; };
71 #endif // GLOBAL_H