author | Michael Krelin <hacker@klever.net> | 2007-01-11 22:34:11 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-01-11 22:34:11 (UTC) |
commit | fc17a506a6647bae8fda0a9943a021a2103f6427 (patch) (unidiff) | |
tree | 9a578ee8b43eec5f72ae3f67b973685158d85166 | |
parent | 6c7179a664044cfbed65ea63b0b4540817eb3408 (diff) | |
download | libopkele-fc17a506a6647bae8fda0a9943a021a2103f6427.zip libopkele-fc17a506a6647bae8fda0a9943a021a2103f6427.tar.gz libopkele-fc17a506a6647bae8fda0a9943a021a2103f6427.tar.bz2 |
doxygen improvements
-rw-r--r-- | include/opkele/extension.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/opkele/extension.h b/include/opkele/extension.h index 2248324..f547555 100644 --- a/include/opkele/extension.h +++ b/include/opkele/extension.h | |||
@@ -1,59 +1,66 @@ | |||
1 | #ifndef __OPKELE_EXTENSION_H | 1 | #ifndef __OPKELE_EXTENSION_H |
2 | #define __OPKELE_EXTENSION_H | 2 | #define __OPKELE_EXTENSION_H |
3 | 3 | ||
4 | /** | 4 | /** |
5 | * @file | 5 | * @file |
6 | * @brief extensions framework basics | 6 | * @brief extensions framework basics |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include <opkele/types.h> | 9 | #include <opkele/types.h> |
10 | 10 | ||
11 | /** | 11 | /** |
12 | * @brief the main opkele namespace | 12 | * @brief the main opkele namespace |
13 | */ | 13 | */ |
14 | namespace opkele { | 14 | namespace opkele { |
15 | 15 | ||
16 | /** | 16 | /** |
17 | * OpenID extension hooks base class | 17 | * OpenID extension hooks base class |
18 | */ | 18 | */ |
19 | class extension_t { | 19 | class extension_t { |
20 | public: | 20 | public: |
21 | /** | 21 | /** |
22 | * hook called by consumer before submitting data to OpenID server. | 22 | * hook called by consumer before submitting data to OpenID server. |
23 | * It is supposed to manipulate parameters list. | 23 | * It is supposed to manipulate parameters list. |
24 | * @param p parameters about to be submitted to server | 24 | * @param p parameters about to be submitted to server |
25 | * @param identity identity being verified. It may differ from the | 25 | * @param identity identity being verified. It may differ from the |
26 | * one available in parameters list in case of delegation | 26 | * one available in parameters list in case of delegation |
27 | * @see consumer_t::checkid_ | ||
28 | * @see consumer_t::checkid_immediate | ||
29 | * @see consumer_t::checkid_setup | ||
27 | */ | 30 | */ |
28 | virtual void checkid_hook(params_t& p,const string& identity); | 31 | virtual void checkid_hook(params_t& p,const string& identity); |
29 | /** | 32 | /** |
30 | * hook called by consumer after identity information received from | 33 | * hook called by consumer after identity information received from |
31 | * OpenID server is verified. | 34 | * OpenID server is verified. |
32 | * @param p parameters received from server | 35 | * @param p parameters received from server |
33 | * @param sp signed parameters received from server with 'openid.' | 36 | * @param sp signed parameters received from server with 'openid.' |
34 | * leader stripped | 37 | * leader stripped |
35 | * @param identity identity confirmed. May differ from the one | 38 | * @param identity identity confirmed. May differ from the one |
36 | * available in parameters list in case of delegation. May also be | 39 | * available in parameters list in case of delegation. May also be |
37 | * empty which means - extract one from parameters | 40 | * empty which means - extract one from parameters |
41 | * @see consumer_t::id_res | ||
38 | */ | 42 | */ |
39 | virtual void id_res_hook(const params_t& p,const params_t& sp,const string& identity); | 43 | virtual void id_res_hook(const params_t& p,const params_t& sp,const string& identity); |
40 | 44 | ||
41 | /** | 45 | /** |
42 | * hook called by server before returning information to consumer. | 46 | * hook called by server before returning information to consumer. |
43 | * The hook may manipulate output parameters. It is important to | 47 | * The hook may manipulate output parameters. It is important to |
44 | * note that modified pout["signed"] is used for signing response. | 48 | * note that modified pout["signed"] is used for signing response. |
45 | * @param pin request parameters list | 49 | * @param pin request parameters list with "openid." prefix |
46 | * @param put response parameters list | 50 | * @param pout response parameters list without "openid." prefix |
51 | * @see server_t::checkid_ | ||
52 | * @see server_t::checkid_immediate | ||
53 | * @see server_t::checkid_setup | ||
47 | */ | 54 | */ |
48 | virtual void checkid_hook(const params_t& pin,params_t& pout); | 55 | virtual void checkid_hook(const params_t& pin,params_t& pout); |
49 | 56 | ||
50 | /** | 57 | /** |
51 | * Casts the object to pointer to itself. For convenient passing | 58 | * Casts the object to pointer to itself. For convenient passing |
52 | * of pointer. | 59 | * of pointer. |
53 | */ | 60 | */ |
54 | operator extension_t*(void) { return this; } | 61 | operator extension_t*(void) { return this; } |
55 | }; | 62 | }; |
56 | 63 | ||
57 | } | 64 | } |
58 | 65 | ||
59 | #endif /* __OPKELE_EXTENSION_H */ | 66 | #endif /* __OPKELE_EXTENSION_H */ |