author | Michael Krelin <hacker@klever.net> | 2008-02-11 21:16:01 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2008-02-11 21:16:01 (UTC) |
commit | 4cd6cad3b5fda6eb09c8c36efeb9426316f35a37 (patch) (side-by-side diff) | |
tree | ed093a441a7a2621a47b628f8973cd7fda056ef4 /include | |
parent | b5a9adac9dfe84ccf509197d24b9e04ecd3ca1d3 (diff) | |
download | libopkele-4cd6cad3b5fda6eb09c8c36efeb9426316f35a37.zip libopkele-4cd6cad3b5fda6eb09c8c36efeb9426316f35a37.tar.gz libopkele-4cd6cad3b5fda6eb09c8c36efeb9426316f35a37.tar.bz2 |
allow to add prefix to generated htmlhiddens
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | include/opkele/types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/opkele/types.h b/include/opkele/types.h index a3b657d..1f48362 100644 --- a/include/opkele/types.h +++ b/include/opkele/types.h @@ -121,65 +121,65 @@ namespace opkele { class basic_openid_message { public: typedef list<string> fields_t; typedef util::forward_iterator_proxy< string,const string&,const string* > fields_iterator; basic_openid_message() { } virtual ~basic_openid_message() { } basic_openid_message(const basic_openid_message& x); void copy_to(basic_openid_message& x) const; virtual bool has_field(const string& n) const = 0; virtual const string& get_field(const string& n) const = 0; virtual bool has_ns(const string& uri) const; virtual string get_ns(const string& uri) const; virtual fields_iterator fields_begin() const = 0; virtual fields_iterator fields_end() const = 0; virtual string append_query(const string& url) const; virtual string query_string() const; virtual void reset_fields(); virtual void set_field(const string& n,const string& v); virtual void reset_field(const string& n); virtual void from_keyvalues(const string& kv); virtual void to_keyvalues(ostream& o) const; - virtual void to_htmlhiddens(ostream& o) const; + virtual void to_htmlhiddens(ostream& o,const char* pfx=0) const; void add_to_signed(const string& fields); string find_ns(const string& uri,const char *pfx) const; string allocate_ns(const string& uri,const char *pfx); }; class openid_message_t : public basic_openid_message, public map<string,string> { public: openid_message_t() { } openid_message_t(const basic_openid_message& x) : basic_openid_message(x) { } void copy_to(basic_openid_message& x) const; bool has_field(const string& n) const; const string& get_field(const string& n) const; virtual fields_iterator fields_begin() const; virtual fields_iterator fields_end() const; void reset_fields(); void set_field(const string& n,const string& v); void reset_field(const string& n); }; /** * request/response parameters map */ class params_t : public openid_message_t { public: /** * check whether the parameter is present. |