summaryrefslogtreecommitdiff
path: root/common/browserdefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/browserdefs.h')
-rw-r--r--common/browserdefs.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/common/browserdefs.h b/common/browserdefs.h
index d5a8a50..0f1fa84 100644
--- a/common/browserdefs.h
+++ b/common/browserdefs.h
@@ -161,6 +161,69 @@ namespace conn {
//## class BookmarkItemList
typedef QList<conn::brw::BookmarkItem> BookmarkItemList;
+ /*!
+ *
+ */
+ //## type SelectableOption
+ struct SelectableOption {
+ /*!
+ * True - option can be selected; False - not - probably optgroup
+ */
+ bool bIsSelectableOption;
+ /*!
+ *
+ */
+ QString strValue; //## attribute strValue
+ /*!
+ *
+ */
+ bool bSelected; //## attribute bSelected
+
+ SelectableOption() : bIsSelectableOption(true), strValue(), bSelected(false) {}
+ };
+
+ //## package connImports::Interfaces::conn::brw::def
+
+ //## class SelectableOptionList
+ /*!
+ *
+ */
+ typedef QList<conn::brw::SelectableOption> SelectableOptionList;
+
+ //## operation operator>>(QDBusArgument,SelectableOption)
+ inline const QDBusArgument& operator>>(const QDBusArgument& args, SelectableOption& selectableOption) {
+ //#[ operation operator>>(QDBusArgument,SelectableOption)
+
+ args.beginStructure();
+
+ args >> selectableOption.bIsSelectableOption
+ >> selectableOption.strValue
+ >> selectableOption.bSelected;
+
+ args.endStructure();
+ return args;
+
+ //#]
+ }
+
+
+ //## operation operator<<(QDBusArgument,SelectableOption)
+ inline QDBusArgument& operator<<(QDBusArgument& args, const SelectableOption& selectableOption) {
+ //#[ operation operator<<(QDBusArgument,SelectableOption)
+
+ args.beginStructure();
+
+ args << selectableOption.bIsSelectableOption
+ << selectableOption.strValue
+ << selectableOption.bSelected;
+
+ args.endStructure();
+
+ return args;
+
+ //#]
+ }
+
/*!
* Result of dialog.
@@ -477,5 +540,6 @@ Q_DECLARE_METATYPE(conn::brw::BrowserScrollDirections)
Q_DECLARE_METATYPE(conn::brw::BrowserActions)
Q_DECLARE_METATYPE(conn::brw::OBJECT_HANDLE)
Q_DECLARE_METATYPE(conn::brw::ObjectHandleList)
+Q_DECLARE_METATYPE(conn::brw::SelectableOption);
#endif // BROWSERDEFS_H