Add context, this fordward is different from the fordward when we are in mail context
[kdepim.git] / korganizer / theme.h
blob9fbb423b58c71af8f94fa5508ced5767573d7b00
1 /*
2 This file is part of KOrganizer.
4 Copyright (c) 2007 Loïc Corbasson <loic.corbasson@gmail.com>
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
21 #ifndef THEME_H
22 #define THEME_H
24 #include <kurl.h>
26 #include <QtCore/QDir>
27 #include <QtCore/QObject>
29 namespace KOrg {
31 /**
32 @class Theme
33 @brief Class for theme management (essentially import/export).
35 class Theme : public QObject
37 Q_OBJECT
39 public:
40 /**
41 Import settings from a theme at the specified URL into KOrganizer's
42 config.
44 static void useThemeFrom( const KUrl &url );
46 /**
47 Save the current theme settings to a theme file
49 static void saveThemeTo( const KUrl &url );
51 /**
52 Clear the current theme settings
54 static void clearCurrentTheme();
56 /**
57 Return the directory where the current theme is stored.
59 static const QDir storageDir();
61 /**
62 Return all themable views corresponding to the @p viewType.
64 static const QStringList themableViews( const QString &viewType = QString() );
69 #endif