xuiqueryline.h 901 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef _XUIQUERYLINE_H
  2. #define _XUIQUERYLINE_H
  3. #include <api/skin/widgets/db/queryline.h>
  4. #define SCRIPTQUERYLINE_PARENT QueryLine
  5. class ScriptQueryLine : public SCRIPTQUERYLINE_PARENT {
  6. public:
  7. ScriptQueryLine();
  8. virtual ~ScriptQueryLine();
  9. //virtual int onInit();
  10. virtual int setXuiParam(int xuihandle, int xmlattributeid, const wchar_t *xmlattributename, const wchar_t *value);
  11. void setXuiQueryList(const char *v);
  12. //virtual int onDeferredCallback(intptr_t p1, intptr_t p2);
  13. private:
  14. enum {
  15. QUERYLINE_SETQUERYLIST=1,
  16. QUERYLINE_SETQUERY,
  17. QUERYLINE_SETAUTO,
  18. };
  19. void ql_setQuery(const char *);
  20. void ensureConnected();
  21. int myxuihandle;
  22. String querylist_id;
  23. };
  24. extern char QueryLineXuiObjectStr[];
  25. extern char QueryLineXuiSvcName[];
  26. class QueryLineXuiSvc : public XuiObjectSvc<ScriptQueryLine, QueryLineXuiObjectStr, QueryLineXuiSvcName> {};
  27. #endif