haiku/3rdparty/mmu_man/themes/ThemeImporter.cpp
François Revol 6359dcf902 Missing files for BeTheme importer.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23803 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-02-01 03:16:18 +00:00

96 lines
1.3 KiB
C++

/*
* ThemeImporter class
*/
#include <Debug.h>
#include <Directory.h>
#include <Message.h>
#include <String.h>
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include "ThemeImporter.h"
#define DEBUG_TI
#ifdef DEBUG_TI
#define FENTRY PRINT(("ThemesImporter[%s]::%s()\n", Name(), __FUNCTION__))
#else
#define FENTRY
#endif
ThemeImporter::ThemeImporter(const char *name)
:fName(name),
fFlags(0L)
{
FENTRY;
fSettings.MakeEmpty();
}
ThemeImporter::~ThemeImporter()
{
FENTRY;
}
const char *ThemeImporter::Name()
{
return fName.String();
}
const char *ThemeImporter::Description()
{
FENTRY;
return "No description yet.";
}
status_t ThemeImporter::LoadSettings(BMessage &settings)
{
FENTRY;
uint32 flags;
fSettings = settings;
if (fSettings.FindInt32("ta:flags", (int32 *)&flags) >= B_OK)
fFlags = flags;
return B_OK;
}
status_t ThemeImporter::SaveSettings(BMessage &settings)
{
FENTRY;
status_t err;
err = fSettings.ReplaceInt32("ta:flags", fFlags);
settings = fSettings;
return err;
}
void ThemeImporter::SetFlags(uint32 flags)
{
fFlags = flags;
}
uint32 ThemeImporter::Flags()
{
return fFlags;
}
status_t ThemeImporter::FetchThemes()
{
FENTRY;
return B_OK;
}
status_t ThemeImporter::ImportNextTheme(BMessage **theme)
{
FENTRY;
return ENOENT;
}
status_t ThemeImporter::EndImports()
{
FENTRY;
return B_OK;
}