#ifndef CONFIG_WIDGETAPI_H_
#define CONFIG_WIDGETAPI_H_
-#include <Config.h>
+#include <Config_def.h>
#include <cstdarg>
#include <string>
struct _xmlDoc;
//<<
-
class CONFIG_EXPORT Config_WidgetAPI
{
-public:
+ public:
Config_WidgetAPI(std::string theRawXml);
virtual ~Config_WidgetAPI();
- void reset();
- bool nextWidget();
- std::string widgetType();
- std::string getProperty(const char* thePropName);
+ bool toNextWidget();
+ bool toChildWidget();
+ bool toParentWidget();
+
+ std::string widgetType() const;
+ bool isContainerWidget() const;
+ bool isPagedWidget() const;
+
+ std::string widgetId() const;
+ std::string widgetIcon() const;
+ std::string widgetLabel() const;
+ std::string widgetTooltip() const;
-protected:
- bool isNode(xmlNodePtr theNode, const char* name, ...);
+ std::string getProperty(const char* thePropName) const;
-private:
+ private:
xmlDocPtr myDoc;
xmlNodePtr myCurrentNode;