2008-10-01 08:28:35 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2008, François Revol, <revol@free.fr>. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2008-02-01 06:16:18 +03:00
|
|
|
#ifndef _BE_THEME_IMPORTER_H
|
|
|
|
#define _BE_THEME_IMPORTER_H
|
|
|
|
/*
|
|
|
|
* BeTheme Importer class header
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <Query.h>
|
|
|
|
|
|
|
|
#include "ThemeImporter.h"
|
|
|
|
|
|
|
|
namespace Z {
|
|
|
|
namespace ThemeManager {
|
|
|
|
|
|
|
|
class BeThemeImporter : public ThemeImporter {
|
|
|
|
public:
|
|
|
|
BeThemeImporter();
|
|
|
|
virtual ~BeThemeImporter();
|
|
|
|
|
|
|
|
/* presentation */
|
|
|
|
|
|
|
|
virtual const char *Description(); /* tooltip... */
|
|
|
|
|
|
|
|
/* Theme manipulation */
|
|
|
|
|
|
|
|
virtual status_t FetchThemes();
|
|
|
|
virtual status_t ImportNextTheme(BMessage **theme);
|
|
|
|
virtual status_t EndImports();
|
|
|
|
|
|
|
|
/* */
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
friend class Z::ThemeManager::ThemeManager;
|
|
|
|
BQuery fQuery;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // ns ThemeManager
|
|
|
|
} // ns Z
|
|
|
|
|
|
|
|
using namespace Z::ThemeManager;
|
|
|
|
|
2008-02-01 06:27:09 +03:00
|
|
|
#endif /* _BE_THEME_IMPORTER_H */
|