summaryrefslogtreecommitdiffabout
path: root/include
authorMichael Krelin <hacker@klever.net>2008-03-03 14:58:09 (UTC)
committer Michael Krelin <hacker@klever.net>2008-03-03 14:58:09 (UTC)
commit0182b9dee269f1a8f3fc0794bfdf4a143fa1b5be (patch) (unidiff)
tree0e435d48a9d2b94ff309c8fea2d416e0e14d8b2a /include
parent5fd5ecad8c2bd1e8846c11fa9b281f0f4ab8a4a7 (diff)
downloadlibopkele-0182b9dee269f1a8f3fc0794bfdf4a143fa1b5be.zip
libopkele-0182b9dee269f1a8f3fc0794bfdf4a143fa1b5be.tar.gz
libopkele-0182b9dee269f1a8f3fc0794bfdf4a143fa1b5be.tar.bz2
added append_to() to basic_openid_message
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'include') (more/less context) (ignore whitespace changes)
-rw-r--r--include/opkele/types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/opkele/types.h b/include/opkele/types.h
index af7fb1a..ffb9afb 100644
--- a/include/opkele/types.h
+++ b/include/opkele/types.h
@@ -108,48 +108,49 @@ namespace opkele {
108 virtual bool stateless() const = 0; 108 virtual bool stateless() const = 0;
109 /** 109 /**
110 * check whether the association is expired. 110 * check whether the association is expired.
111 * @return true if expired 111 * @return true if expired
112 */ 112 */
113 virtual bool is_expired() const = 0; 113 virtual bool is_expired() const = 0;
114 }; 114 };
115 115
116 /** 116 /**
117 * the shared_ptr<> for association_t object type 117 * the shared_ptr<> for association_t object type
118 */ 118 */
119 typedef tr1mem::shared_ptr<association_t> assoc_t; 119 typedef tr1mem::shared_ptr<association_t> assoc_t;
120 120
121 class basic_openid_message { 121 class basic_openid_message {
122 public: 122 public:
123 typedef list<string> fields_t; 123 typedef list<string> fields_t;
124 typedef util::forward_iterator_proxy< 124 typedef util::forward_iterator_proxy<
125 string,const string&,const string* 125 string,const string&,const string*
126 > fields_iterator; 126 > fields_iterator;
127 127
128 basic_openid_message() { } 128 basic_openid_message() { }
129 virtual ~basic_openid_message() { } 129 virtual ~basic_openid_message() { }
130 basic_openid_message(const basic_openid_message& x); 130 basic_openid_message(const basic_openid_message& x);
131 void copy_to(basic_openid_message& x) const; 131 void copy_to(basic_openid_message& x) const;
132 void append_to(basic_openid_message& x) const;
132 133
133 virtual bool has_field(const string& n) const = 0; 134 virtual bool has_field(const string& n) const = 0;
134 virtual const string& get_field(const string& n) const = 0; 135 virtual const string& get_field(const string& n) const = 0;
135 136
136 virtual bool has_ns(const string& uri) const; 137 virtual bool has_ns(const string& uri) const;
137 virtual string get_ns(const string& uri) const; 138 virtual string get_ns(const string& uri) const;
138 139
139 virtual fields_iterator fields_begin() const = 0; 140 virtual fields_iterator fields_begin() const = 0;
140 virtual fields_iterator fields_end() const = 0; 141 virtual fields_iterator fields_end() const = 0;
141 142
142 virtual string append_query(const string& url,const char *pfx="openid.") const; 143 virtual string append_query(const string& url,const char *pfx="openid.") const;
143 virtual string query_string(const char *pfx="openid.") const; 144 virtual string query_string(const char *pfx="openid.") const;
144 145
145 146
146 virtual void reset_fields(); 147 virtual void reset_fields();
147 virtual void set_field(const string& n,const string& v); 148 virtual void set_field(const string& n,const string& v);
148 virtual void reset_field(const string& n); 149 virtual void reset_field(const string& n);
149 150
150 virtual void from_keyvalues(const string& kv); 151 virtual void from_keyvalues(const string& kv);
151 virtual void to_keyvalues(ostream& o) const; 152 virtual void to_keyvalues(ostream& o) const;
152 153
153 virtual void to_htmlhiddens(ostream& o,const char* pfx=0) const; 154 virtual void to_htmlhiddens(ostream& o,const char* pfx=0) const;
154 155
155 void add_to_signed(const string& fields); 156 void add_to_signed(const string& fields);