00001
00004 #ifndef SXOBJECT_H_INCLUDED
00005 #define SXOBJECT_H_INCLUDED
00006
00007 #include "sxGlobal.h"
00008
00012 class SX_SDKEXPORT sxObject
00013 {
00014 public:
00015 virtual ~sxObject() {}
00016 virtual QString ToString() const;
00017 virtual const char * ToPrintable() const;
00018
00019 void SetTag(quintptr tag);
00020 quintptr Tag() const;
00021
00022 void SetName(const QString & name);
00023 QString Name() const;
00024 protected:
00025 explicit sxObject(const QString & name);
00026
00027 private:
00028 SX_DISABLE_COPY(sxObject)
00029
00030 QString xName;
00031 quintptr xTag;
00032 };
00033
00037 class SX_SDKEXPORT sxCaptionItem : public sxObject
00038 {
00039 public:
00040 virtual ~sxCaptionItem() {}
00041
00042 QString Caption() const;
00043 void SetCaption(const QString& cap);
00044 protected:
00045 sxCaptionItem(const QString& name, const QString& cap);
00046 private:
00047 SX_DISABLE_COPY(sxCaptionItem)
00048
00049 QString xCaption;
00050 };
00051
00052 #endif // SXOBJECT_H_INCLUDED