[pan2/xzver_support: 46/47] fsdfds
- From: Heinrich MÃller <henmull src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2/xzver_support: 46/47] fsdfds
- Date: Sun, 10 Jun 2012 19:20:22 +0000 (UTC)
commit fc54e2abefd11b8054d2368a6a3eff87223e1762
Author: Heinrich MÃller <henmull src gnome org>
Date: Sun Jun 10 21:03:38 2012 +0200
fsdfds
pan/data/data.h | 7 +++++--
pan/data/server-info.h | 8 ++++++++
2 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/pan/data/data.h b/pan/data/data.h
index e76a26a..8a90a38 100644
--- a/pan/data/data.h
+++ b/pan/data/data.h
@@ -27,6 +27,7 @@
#include <pan/general/macros.h>
#include <pan/general/quark.h>
+#include <pan/general/compression.h>
#include <pan/general/string-view.h>
#include <pan/usenet-utils/scorefile.h>
#include <pan/data/article.h>
@@ -178,7 +179,6 @@ namespace pan
{
Quark server;
StringView user;
-// StringView pw;
gchar* pw;
};
@@ -196,12 +196,13 @@ namespace pan
int rank;
int ssl_support;
int trust;
+ int compression_type;
typedef sorted_vector<Quark,true,AlphabeticalQuarkOrdering> groups_t;
groups_t groups;
gchar* gkr_pw;
Server(): port(STD_NNTP_PORT), article_expiration_age(31), max_connections(2),
- rank(1), ssl_support(0), trust(0), gkr_pw(NULL) {}
+ rank(1), ssl_support(0), trust(0), gkr_pw(NULL), compression_type(0) /* NONE */ {}
};
protected:
@@ -268,6 +269,8 @@ namespace pan
virtual bool get_server_trust (const Quark & servername, int&) const = 0;
+ virtual bool get_server_compression_type (const Quark & servername, CompressionType&) const = 0;
+
virtual std::string get_server_cert (const Quark & server) const = 0;
virtual int get_server_limits (const Quark & server) const = 0;
diff --git a/pan/data/server-info.h b/pan/data/server-info.h
index 7f4f6a9..d0b407d 100644
--- a/pan/data/server-info.h
+++ b/pan/data/server-info.h
@@ -22,10 +22,12 @@
#include <string>
#include <pan/general/quark.h>
+#include <pan/general/compression.h>
#include <pan/general/string-view.h>
namespace pan
{
+
struct ServerRank
{
virtual ~ServerRank () {}
@@ -38,6 +40,7 @@ namespace pan
*/
class ServerInfo: public ServerRank
{
+
public:
virtual ~ServerInfo () {}
@@ -52,6 +55,9 @@ namespace pan
virtual void set_server_trust (const Quark & servername,
const int setme) = 0;
+ virtual void set_server_compression_type (const Quark & servername,
+ const int setme) = 0;
+
virtual void set_server_addr (const Quark & servername,
const StringView & address,
const int port) = 0;
@@ -81,6 +87,8 @@ namespace pan
virtual bool get_server_trust (const Quark & servername, int&) const = 0;
+ virtual bool get_server_compression_type (const Quark & servername, CompressionType&) const = 0;
+
virtual bool get_server_addr (const Quark & servername,
std::string & setme_address,
int & setme_port) const = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]