return m_src == info.m_src &&
m_operation == info.m_operation &&
m_scheme == info.m_scheme &&
- m_mime == info.m_mime;
+ m_mime == info.m_mime &&
+ m_disposition == info.m_disposition;
}
bool ConfigParserData::ServiceInfo::operator!= (const ServiceInfo& info) const
return m_src != info.m_src &&
m_operation != info.m_operation &&
m_scheme != info.m_scheme &&
- m_mime != info.m_mime;
+ m_mime != info.m_mime &&
+ m_disposition != info.m_disposition;
}
bool ConfigParserData::LiveboxInfo::operator==(const LiveboxInfo& other) const
*/
struct WidgetApplicationService
{
- public:
+ enum class Disposition {
+ WINDOW = 0,
+ INLINE
+ };
+
DPL::String src; /* start uri */
DPL::String operation; /* service name */
DPL::String scheme; /* scheme type*/
DPL::String mime; /* mime type */
+ Disposition disposition;
bool operator== (const WidgetApplicationService& other) const
{
return src == other.src &&
operation == other.operation &&
scheme == other.scheme &&
- mime == other.mime;
+ mime == other.mime &&
+ disposition == other.disposition;
}
};
*/
struct ServiceInfo
{
+ enum class Disposition {
+ WINDOW = 0,
+ INLINE
+ };
ServiceInfo(
const DPL::String& src,
const DPL::String& operation,
const DPL::String& scheme,
- const DPL::String& mime) :
+ const DPL::String& mime,
+ const Disposition dispos) :
m_src(src),
m_operation(operation),
m_scheme(scheme),
- m_mime(mime)
+ m_mime(mime),
+ m_disposition(dispos)
{}
DPL::String m_src;
DPL::String m_operation;
DPL::String m_scheme;
DPL::String m_mime;
+ Disposition m_disposition;
bool operator==(const ServiceInfo&) const;
bool operator!=(const ServiceInfo&) const;
CREATE_TABLE_END()
CREATE_TABLE(SettingsList)
- COLUMN_NOT_NULL(appId, INT,)
- COLUMN_NOT_NULL(settingName, TEXT, )
- COLUMN_NOT_NULL(settingValue, TEXT, )
+ COLUMN_NOT_NULL(appId, INT,)
+ COLUMN_NOT_NULL(settingName, TEXT,)
+ COLUMN_NOT_NULL(settingValue, TEXT,)
TABLE_CONSTRAINTS(
FOREIGN KEY (appId) REFERENCES WidgetInfo (app_id) ON DELETE CASCADE
)
CREATE_TABLE_END()
CREATE_TABLE(ApplicationServiceInfo)
- COLUMN_NOT_NULL(app_id, INT,)
- COLUMN_NOT_NULL(src, TEXT,)
- COLUMN_NOT_NULL(operation, TEXT,)
- COLUMN_NOT_NULL(scheme, TEXT,)
- COLUMN_NOT_NULL(mime, TEXT,)
+ COLUMN_NOT_NULL(app_id, INT,)
+ COLUMN_NOT_NULL(src, TEXT,)
+ COLUMN_NOT_NULL(operation, TEXT,)
+ COLUMN_NOT_NULL(scheme, TEXT,)
+ COLUMN_NOT_NULL(mime, TEXT,)
+ COLUMN_NOT_NULL(disposition, TINYINT, DEFAULT 0)
TABLE_CONSTRAINTS(
PRIMARY KEY(app_id, operation, scheme, mime)