LunaSysMgr
|
#include <CmdResourceHandlers.h>
Public Member Functions | |
ResourceHandler (const std::string &ext, const std::string &contentType, const std::string &appId, bool stream=false) | |
More... | |
ResourceHandler (const std::string &ext, const std::string &contentType, const std::string &appId, bool stream, const std::string &handler_tag) | |
~ResourceHandler () | |
ResourceHandler () | |
ResourceHandler (const ResourceHandler &c) | |
ResourceHandler & | operator= (const ResourceHandler &c) |
bool | operator== (const ResourceHandler &c) const |
bool | operator!= (const ResourceHandler &c) const |
bool | match (const std::string &extension, const std::string &appId, const std::string &mimeType, bool stream) const |
bool | match (const std::string &extension, const std::string &appId, const std::string &mimeType) const |
bool | match (const std::string &appId, const std::string &mimeType) const |
const std::string & | appId () const |
const std::string & | fileExt () const |
const std::string & | contentType () const |
const std::string & | tag () const |
void | setTag (const std::string &newtag) |
uint32_t | index () |
uint32_t | setIndex (uint32_t newindex) |
bool | stream () const |
bool | valid () |
void | markInvalid () |
bool | addVerb (const std::string &verb, const std::string &jsonizedParams) |
void | removeVerb (const std::string &verb) |
std::string | toJsonString () |
struct json_object * | toJson () |
const std::map< std::string, std::string > & | verbs () |
Friends | |
class | ResourceHandlerNode |
Associate a resource file extension and MIME type to the application that can open that resource type.
ResourceHandler::ResourceHandler | ( | const std::string & | ext, |
const std::string & | contentType, | ||
const std::string & | appId, | ||
bool | stream = false |
||
) |
ResourceHandler::ResourceHandler | ( | const std::string & | ext, |
const std::string & | contentType, | ||
const std::string & | appId, | ||
bool | stream, | ||
const std::string & | handler_tag | ||
) |
|
inline |
|
inline |
ResourceHandler::ResourceHandler | ( | const ResourceHandler & | c | ) |
bool ResourceHandler::addVerb | ( | const std::string & | verb, |
const std::string & | jsonizedParams | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
ResourceHandler & ResourceHandler::operator= | ( | const ResourceHandler & | c | ) |
|
inline |
void ResourceHandler::removeVerb | ( | const std::string & | verb | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
read |
std::string ResourceHandler::toJsonString | ( | ) |
|
inline |
|
inline |
|
friend |