| 15 |
|
|
| 16 |
class index : public item{ |
class index : public item{ |
| 17 |
private: |
private: |
| 18 |
int parentIndexID; |
int parentXID; |
| 19 |
int ownerUserID; |
int ownerUID; |
| 20 |
int ownerGroupID; |
int ownerGID; |
| 21 |
openlevel_t openLevel; |
openlevel_t openLevel; |
| 22 |
unsigned long sortNumber; |
unsigned int sortNumber; |
| 23 |
public: |
public: |
| 24 |
const static openlevel_t PUBLIC = 1; |
const static openlevel_t OL_PUBLIC = 1; |
| 25 |
const static openlevel_t GROUP_ONLY = 2; |
const static openlevel_t OL_GROUP_ONLY = 2; |
| 26 |
const static openlevel_t PRIVATE = 3; |
const static openlevel_t OL_PRIVATE = 3; |
| 27 |
|
|
| 28 |
index(); |
index(); |
| 29 |
~index(); |
~index(); |
| 30 |
|
|
| 31 |
|
int getIndexID() const; |
| 32 |
int getParentIndexID() const; |
int getParentIndexID() const; |
| 33 |
int getOwnerUserID() const; |
int getOwnerUID() const; |
| 34 |
int getOwnerGroupID() const; |
int getOwnerGID() const; |
| 35 |
openlevel_t getOpenLevel() const; |
openlevel_t getOpenLevel() const; |
| 36 |
unsigned long getSortNumber() const; |
unsigned int getSortNumber() const; |
| 37 |
|
|
| 38 |
|
void setIndexID(int); |
| 39 |
void setParentIndexID(int); |
void setParentIndexID(int); |
| 40 |
void setOwnerUserID(int); |
void setOwnerUID(int); |
| 41 |
void setOwnerGroupID(int); |
void setOwnerGID(int); |
| 42 |
void setOpenLevel(openlevel_t); |
void setOpenLevel(openlevel_t); |
| 43 |
void setSortNumber(unsigned long); |
void setSortNumber(unsigned int); |
| 44 |
|
|
| 45 |
bool isPublic() const; |
bool isPublic() const; |
| 46 |
bool isGroupOnly() const; |
bool isGroupOnly() const; |