int line,
const char *function)
{
+#ifdef SECURE_LOG
+ SECURE_LOG(LOG_DEBUG, m_tag.Get(), "%s",
+ FormatMessage(message, filename, line, function).c_str());
+#else
LOG(LOG_DEBUG, m_tag.Get(), "%s",
FormatMessage(message, filename, line, function).c_str());
+#endif
}
void DLOGLogProvider::Info(const char *message,
int line,
const char *function)
{
+#ifdef SECURE_LOG
+ SECURE_LOG(LOG_INFO, m_tag.Get(), "%s",
+ FormatMessage(message, filename, line, function).c_str());
+#else
LOG(LOG_INFO, m_tag.Get(), "%s",
FormatMessage(message, filename, line, function).c_str());
+#endif
}
void DLOGLogProvider::Warning(const char *message,
int line,
const char *function)
{
+#ifdef SECURE_LOG
+ SECURE_LOG(LOG_WARN, m_tag.Get(), "%s",
+ FormatMessage(message, filename, line, function).c_str());
+#else
LOG(LOG_WARN, m_tag.Get(), "%s",
FormatMessage(message, filename, line, function).c_str());
+#endif
}
void DLOGLogProvider::Error(const char *message,
int line,
const char *function)
{
+#ifdef SECURE_LOG
+ SECURE_LOG(LOG_ERROR, m_tag.Get(), "%s",
+ FormatMessage(message, filename, line, function).c_str());
+#else
LOG(LOG_ERROR, m_tag.Get(), "%s",
FormatMessage(message, filename, line, function).c_str());
+#endif
}
void DLOGLogProvider::Pedantic(const char *message,
int line,
const char *function)
{
+#ifdef SECURE_LOG
+ SECURE_LOG(LOG_DEBUG, "DPL", "%s", FormatMessage(message,
+ filename,
+ line,
+ function).c_str());
+#else
LOG(LOG_DEBUG, "DPL", "%s", FormatMessage(message,
filename,
line,
function).c_str());
+#endif
}
}
} // namespace DPL
typedef std::list<AppControlInfo> AppControlInfoList;
- typedef std::list<std::pair<DPL::String, DPL::String> > BoxSizeList;
- typedef std::list<std::pair<DPL::String, DPL::String> > BoxLabelList;
-
struct LiveboxInfo
{
LiveboxInfo() { }
+ struct BoxSize
+ {
+ DPL::String m_size;
+ DPL::String m_preview;
+ DPL::String m_useDecoration;
+ };
+ typedef BoxSize BoxSizeInfo;
+ typedef std::list<BoxSizeInfo> BoxSizeList;
+
struct BoxContent
{
DPL::String m_boxSrc;
};
typedef BoxContent BoxContentInfo;
+ typedef std::list<std::pair<DPL::String, DPL::String> > BoxLabelList;
+
BoxLabelList m_label;
DPL::String m_icon;
DPL::String m_liveboxId;
struct Metadata
{
- Metadata(const DPL::String& _key,
- const DPL::String& _value) :
+ Metadata(const DPL::OptionalString& _key,
+ const DPL::OptionalString& _value) :
key(_key),
value(_value)
{}
- DPL::String key;
- DPL::String value;
+ DPL::OptionalString key;
+ DPL::OptionalString value;
bool operator==(const Metadata&) const;
bool operator!=(const Metadata&) const;