summaryrefslogtreecommitdiffabout
path: root/include
Unidiff
Diffstat (limited to 'include') (more/less context) (ignore whitespace changes)
-rw-r--r--include/opkele/types.h22
1 files changed, 9 insertions, 13 deletions
diff --git a/include/opkele/types.h b/include/opkele/types.h
index bf50e2b..f63bf5d 100644
--- a/include/opkele/types.h
+++ b/include/opkele/types.h
@@ -119,5 +119,5 @@ namespace opkele {
119 typedef tr1mem::shared_ptr<association_t> assoc_t; 119 typedef tr1mem::shared_ptr<association_t> assoc_t;
120 120
121 class basic_message { 121 class basic_fields {
122 public: 122 public:
123 typedef util::forward_iterator_proxy< 123 typedef util::forward_iterator_proxy<
@@ -125,9 +125,9 @@ namespace opkele {
125 > fields_iterator; 125 > fields_iterator;
126 126
127 basic_message() { } 127 basic_fields() { }
128 virtual ~basic_message() { } 128 virtual ~basic_fields() { }
129 basic_message(const basic_message& x); 129 basic_fields(const basic_fields& x);
130 void copy_to(basic_message& x) const; 130 void copy_to(basic_fields& x) const;
131 void append_to(basic_message& x) const; 131 void append_to(basic_fields& x) const;
132 132
133 virtual bool has_field(const string& n) const = 0; 133 virtual bool has_field(const string& n) const = 0;
@@ -146,10 +146,6 @@ namespace opkele {
146 }; 146 };
147 147
148 class basic_openid_message : public basic_message { 148 class basic_openid_message : public basic_fields {
149 public: 149 public:
150 typedef list<string> fields_t;
151 typedef util::forward_iterator_proxy<
152 string,const string&,const string*
153 > fields_iterator;
154 150
155 basic_openid_message() { } 151 basic_openid_message() { }
@@ -160,7 +156,7 @@ namespace opkele {
160 156
161 virtual string append_query(const string& url,const char *pfx="openid.") const { 157 virtual string append_query(const string& url,const char *pfx="openid.") const {
162 return basic_message::append_query(url,pfx); } 158 return basic_fields::append_query(url,pfx); }
163 virtual string query_string(const char *pfx="openid.") const { 159 virtual string query_string(const char *pfx="openid.") const {
164 return basic_message::query_string(pfx); } 160 return basic_fields::query_string(pfx); }
165 161
166 virtual void from_keyvalues(const string& kv); 162 virtual void from_keyvalues(const string& kv);