| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
#ifndef H_TAGEDIT_TAGSPEC |
| 14 |
#define H_TAGEDIT_TAGSPEC |
| 15 |
|
| 16 |
#include <smooth.h> |
| 17 |
#include <boca.h> |
| 18 |
|
| 19 |
using namespace smooth; |
| 20 |
using namespace smooth::GUI; |
| 21 |
|
| 22 |
using namespace BoCA; |
| 23 |
|
| 24 |
namespace BoCA |
| 25 |
{ |
| 26 |
const Int FIELD_TYPE_UNKNOWN = 0; |
| 27 |
const Int FIELD_TYPE_TEXT = 1; |
| 28 |
const Int FIELD_TYPE_INTEGER = 2; |
| 29 |
const Int FIELD_TYPE_DATA = 3; |
| 30 |
const Int FIELD_TYPE_GENRE = 4; |
| 31 |
const Int FIELD_TYPE_PICTURE = 5; |
| 32 |
|
| 33 |
class TagField |
| 34 |
{ |
| 35 |
public: |
| 36 |
String name; |
| 37 |
Int type; |
| 38 |
|
| 39 |
String techId; |
| 40 |
|
| 41 |
TagField(Int nil = NIL) { type = FIELD_TYPE_UNKNOWN; } |
| 42 |
TagField(const String &iName, Int iType, const String &iTechId) { name = iName; type = iType; techId = iTechId; } |
| 43 |
}; |
| 44 |
|
| 45 |
class TagSpec |
| 46 |
{ |
| 47 |
public: |
| 48 |
String name; |
| 49 |
Array<TagField> fields; |
| 50 |
|
| 51 |
Int LoadFromXML(const String &); |
| 52 |
}; |
| 53 |
}; |
| 54 |
|
| 55 |
#endif |