\file SupportingApps.h
SupportingApps class declarations
*/
#ifndef _MIME_SUPPORTING_APPS_H
#define _MIME_SUPPORTING_APPS_H
#include <SupportDefs.h>
#include <map>
#include <set>
#include <string>
class BMessage;
namespace BPrivate {
namespace Storage {
namespace Mime {
class DatabaseLocation;
class SupportingApps {
public:
SupportingApps(DatabaseLocation* databaseLocation);
~SupportingApps();
status_t GetSupportingApps(const char *type, BMessage *apps);
status_t SetSupportedTypes(const char *app, const BMessage *types, bool fullSync);
status_t DeleteSupportedTypes(const char *app, bool fullSync);
private:
status_t AddSupportingApp(const char *type, const char *app);
status_t RemoveSupportingApp(const char *type, const char *app);
status_t BuildSupportingAppsTable();
std::map<std::string, std::set<std::string> > fSupportedTypes;
std::map<std::string, std::set<std::string> > fSupportingApps;
std::map<std::string, std::set<std::string> > fStrandedTypes;
private:
DatabaseLocation* fDatabaseLocation;
bool fHaveDoneFullBuild;
};
}
}
}
#endif