Browse CVS Repository
Annotation of /xoonips/AL/index.h
Parent Directory
| Revision Log
| Revision Graph
Revision 1.2 -
( hide annotations)
( download)
( as text)
Fri Jan 14 10:34:29 2005 UTC
(19 years, 2 months ago)
by aga
Branch: MAIN
Changes since 1.1: +15 -13 lines
File MIME type: text/x-chdr
・ownerUserID -> ownerUID, ownerGroupID -> ownerGID.
・parentIndexID -> parentXID.
・PUBLIC/GROUP_ONLY/RPIVATE -> OL_PUBLIC/OL_GROUP_ONLY/OL_PRIVATE.
・sortNumberをunsigned intに.
| 1 |
aga |
1.1 |
/* |
| 2 |
|
|
* |
| 3 |
|
|
* ?ゃ?潟???????鴻???若???若??膊∞?????????鴻???荐? |
| 4 |
|
|
* |
| 5 |
|
|
* $Revision$ |
| 6 |
|
|
*/ |
| 7 |
|
|
|
| 8 |
|
|
#if !defined( INDEX_H ) |
| 9 |
|
|
#define INDEX_H |
| 10 |
|
|
|
| 11 |
|
|
#include "common.h" |
| 12 |
|
|
#include "item.h" |
| 13 |
|
|
|
| 14 |
|
|
typedef unsigned int openlevel_t; |
| 15 |
|
|
|
| 16 |
|
|
class index : public item{ |
| 17 |
|
|
private: |
| 18 |
aga |
1.2 |
int parentXID; |
| 19 |
|
|
int ownerUID; |
| 20 |
|
|
int ownerGID; |
| 21 |
aga |
1.1 |
openlevel_t openLevel; |
| 22 |
aga |
1.2 |
unsigned int sortNumber; |
| 23 |
aga |
1.1 |
public: |
| 24 |
aga |
1.2 |
const static openlevel_t OL_PUBLIC = 1; |
| 25 |
|
|
const static openlevel_t OL_GROUP_ONLY = 2; |
| 26 |
|
|
const static openlevel_t OL_PRIVATE = 3; |
| 27 |
aga |
1.1 |
|
| 28 |
|
|
index(); |
| 29 |
|
|
~index(); |
| 30 |
|
|
|
| 31 |
aga |
1.2 |
int getIndexID() const; |
| 32 |
aga |
1.1 |
int getParentIndexID() const; |
| 33 |
aga |
1.2 |
int getOwnerUID() const; |
| 34 |
|
|
int getOwnerGID() const; |
| 35 |
aga |
1.1 |
openlevel_t getOpenLevel() const; |
| 36 |
aga |
1.2 |
unsigned int getSortNumber() const; |
| 37 |
aga |
1.1 |
|
| 38 |
aga |
1.2 |
void setIndexID(int); |
| 39 |
aga |
1.1 |
void setParentIndexID(int); |
| 40 |
aga |
1.2 |
void setOwnerUID(int); |
| 41 |
|
|
void setOwnerGID(int); |
| 42 |
aga |
1.1 |
void setOpenLevel(openlevel_t); |
| 43 |
aga |
1.2 |
void setSortNumber(unsigned int); |
| 44 |
aga |
1.1 |
|
| 45 |
|
|
bool isPublic() const; |
| 46 |
|
|
bool isGroupOnly() const; |
| 47 |
|
|
bool isPrivate() const; |
| 48 |
|
|
|
| 49 |
|
|
}; |
| 50 |
|
|
|
| 51 |
|
|
typedef class index index_t; // "index"????????篁????贋???т戎???????????????????? |
| 52 |
|
|
|
| 53 |
|
|
#endif |
|