Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips/AL/session.h

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


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

1 /*
2 *
3 * ?祉???激?с?括??????????鴻???荐?
4 *
5 * $Revision: 1.7 $
6 * $Log: session.h,v $
7 * Revision 1.7 2005/01/15 05:33:41 youi
8 * account.h???ゃ?潟?????若??????.
9 *
10 * Revision 1.6 2005/01/06 07:24:07 youi
11 * getUserID??getUID???setUserID??setUID???劫??????.
12 *
13 * Revision 1.5 2004/11/30 05:46:32 aga
14 * ??ession????remoteHost??????
15 *
16 * Revision 1.4 2004/11/26 06:24:53 aga
17 * ??ession???<?潟????serid_t??菴遵??.
18 *
19 * Revision 1.3 2004/11/25 09:00:41 youi
20 * get膤脂?∽?違??onst篆??.
21 * sessionid_t??typedef????.
22 *
23 * Revision 1.2 2004/11/25 04:12:03 youi
24 * typedef??菴遵??.
25 *
26 * Revision 1.1 2004/11/24 06:53:07 youi
27 * initial version
28 *
29 *
30 */
31
32 #if !defined( SESSION_H )
33 #define SESSION_H
34
35 #include <time.h>
36 #include "account.h"
37 #include "common.h"
38
39 typedef unsigned long sessionid_t;
40 class session{
41 private:
42 unsigned long sessionID; //?祉???激?с??D
43 time_t date; //?祉???激?с?割????ユ??
44 userid_t userID; // xoops_users??id
45
46 void sessionid( time_t date );
47 public:
48 // reserved sessionID
49 static const sessionid_t SID_GUEST = 0;
50
51 session();
52 session( time_t date );
53 ~session();
54
55 sessionid_t getSessionID() const;
56 time_t getDate() const;
57 userid_t getUID() const;
58
59 void setDate( time_t date );
60 void setSessionID( sessionid_t );
61 void setUID( userid_t );
62 };
63
64 typedef session session_t;
65 #endif

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