Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips/AL/account.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.7 - (show annotations) (download) (as text)
Wed Jan 19 10:06:19 2005 UTC (19 years, 2 months ago) by aga
Branch: MAIN
Changes since 1.6: +7 -1 lines
File MIME type: text/x-chdr
・account::UID_GUEST=0を定義.

1 /*
2 * XOOPS&Platform???若?句????????????????劫?荐?
3 *
4 * $Revision: 1.6 $
5 * $Log: account.h,v $
6 * Revision 1.6 2005/01/15 05:31:16 youi
7 * userid_t??篏帥?c???臂?
8 *
9 * Revision 1.5 2005/01/14 10:33:37 aga
10 * ??nt privateIndexID??菴遵??.
11 *
12 * Revision 1.4 2004/12/01 10:28:58 youi
13 * DB????????????眼??軸??篆??
14 * institute -> division
15 * organizaion -> company_name
16 *
17 * Revision 1.3 2004/11/25 08:57:15 youi
18 * get膤脂?∽?違??onst篆??.
19 *
20 * Revision 1.2 2004/11/25 04:11:43 youi
21 * typedef??菴遵??.
22 *
23 * Revision 1.1 2004/11/22 08:25:16 youi
24 * initial version.
25 *
26 *
27 */
28 #if !defined( ACCOUNT_H )
29 #define ACCOUNT_H
30
31 /*
32 * Visiome Platform Abstract Layer
33 * Account膊∞????????/span>
34 *
35 *
36 */
37
38 typedef unsigned int userid_t;
39 class account{
40 private:
41 userid_t uid; //< ???若?吟?潟?若??
42 bool activate; //< ?≪?????若?帥???????粋???????/span>
43 char* address; //< 篏??
44 char* division; //< ??絮?
45 char* tel; //< ?肢????/span>
46 char* company_name; //< 絖???篌?腓上??
47 char* country; //< ?遵??
48 char* zipcode; //< ?灸梢???/span>
49 char* fax; //< ???<?????合???/span>
50 char* baseURL; //< ???若??RL
51 int noticeMail; //< ?亥???≪?ゃ???????ャ?<?若????篆♂????
52 time_t noticeMailSince; //< ?亥???≪?ゃ???????ャ?<?若????篆♂?????脂?我??/span>
53 int privateIndexID; //private index??D
54
55 char* uname;
56 char* name;
57 char* email;
58 char* url;
59 char* user_avatar;
60 int user_regdate;
61 char* user_icq;
62 char* user_from;
63 char* user_sig;
64 int user_viewemail;
65 char* actkey;
66 char* user_aim;
67 char* user_yim;
68 char* user_msnm;
69 char* pass;
70 int posts;
71 int attachsig;
72 int rank;
73 int level;
74 char* theme;
75 double timezone_offset;
76 int last_login;
77 char* umode;
78 int uorder;
79 int notify_method;
80 int notify_mode;
81 char* user_occ;
82 char* bio;
83 char* user_intrest;
84 int user_mailok;
85
86 public:
87 // reserved uid
88 static const userid_t UID_GUEST = 0;
89
90 account();
91 ~account();
92
93 // ----
94 userid_t getUID() const;
95 bool getActivate() const;
96 const char *getAddress() const;
97 const char *getDivision() const;
98 const char *getTel() const;
99 const char *getCompanyName() const;
100 const char *getCountry() const;
101 const char *getZipcode() const;
102 const char *getFax() const;
103 const char *getBaseURL() const;
104 int getNoticeMail() const;
105 time_t getNoticeMailSince() const;
106 int getPrivateIndexID() const;
107 // ----
108 const char* getUname( ) const;
109 const char* getName( ) const;
110 const char* getEmail( ) const;
111 const char* getURL( ) const;
112 const char* getUserAvatar( ) const;
113 int getUserRegdate( ) const;
114 const char* getUserIcq( ) const;
115 const char* getUserFrom( ) const;
116 const char* getUserSig( ) const;
117 int getUserViewemail( ) const;
118 const char* getActkey( ) const;
119 const char* getUserAim( ) const;
120 const char* getUserYim( ) const;
121 const char* getUserMsnm( ) const;
122 const char* getPass( ) const;
123 int getPosts( ) const;
124 int getAttachsig( ) const;
125 int getRank( ) const;
126 int getLevel( ) const;
127 const char* getTheme( ) const;
128 double getTimezoneOffset( ) const;
129 int getLastLogin( ) const;
130 const char* getUmode( ) const;
131 int getUorder( ) const;
132 int getNotifyMethod( ) const;
133 int getNotifyMode( ) const;
134 const char* getUserOcc( ) const;
135 const char* getBio( ) const;
136 const char* getUserIntrest( ) const;
137 int getUserMailok( ) const;
138
139 // ----
140 void setUID(userid_t uid);
141 void setActivate(bool activate);
142 void setAddress(const char *address);
143 void setDivision(const char *division);
144 void setTel(const char *tel);
145 void setCompanyName(const char *company_name);
146 void setCountry(const char *country);
147 void setZipcode(const char *zipcode);
148 void setFax(const char *fax);
149 void setBaseURL(const char *baseURL);
150 void setNoticeMail(int noticeMail);
151 void setNoticeMailSince( time_t noticeMailSince);
152 void setPrivateIndexID(int xid);
153 // ----
154 void setUname( const char* uname );
155 void setName( const char* name );
156 void setEmail( const char* email );
157 void setURL( const char* url );
158 void setUserAvatar( const char* user_avatar );
159 void setUserRegdate( int user_regdate);
160 void setUserIcq( const char* user_icq );
161 void setUserFrom( const char* user_from );
162 void setUserSig( const char* user_sig );
163 void setUserViewemail( int user_viewemail );
164 void setActkey( const char* actkey );
165 void setUserAim( const char* user_aim );
166 void setUserYim( const char* user_yim );
167 void setUserMsnm( const char* user_msnm );
168 void setPass( const char* pass );
169 void setPosts( int posts );
170 void setAttachsig( int attachsig );
171 void setRank( int rank );
172 void setLevel( int level );
173 void setTheme( const char* theme );
174 void setTimezoneOffset( double timezone_offset );
175 void setLastLogin( int last_login );
176 void setUmode( const char* umode );
177 void setUorder( int uorder );
178 void setNotifyMethod( int notify_method );
179 void setNotifyMode( int notify_mode );
180 void setUserOcc( const char* user_occ );
181 void setBio( const char* bio );
182 void setUserIntrest( const char* user_intrest );
183 void setUserMailok( int user_mailok );
184 };
185
186 typedef account account_t;
187
188 #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26