~ubuntu-branches/ubuntu/raring/quassel/raring-proposed

« back to all changes in this revision

Viewing changes to src/common/network.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-08-11 12:48:08 UTC
  • mfrom: (1.1.40 upstream)
  • Revision ID: james.westby@ubuntu.com-20100811124808-wl3zpp4gpbzmvn4t
Tags: 0.7~beta1-0ubuntu1
* New upstream beta release
  - Add libqca2-dev to build-depends for blowfish support
* Switch to source format v3 (Quilt) to use .bz2 tarball
  - Drop build-depends on quilt and update debian/rules
  - Add debian/source/format

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/***************************************************************************
2
 
 *   Copyright (C) 2005-09 by the Quassel Project                          *
 
2
 *   Copyright (C) 2005-2010 by the Quassel Project                        *
3
3
 *   devel@quassel-irc.org                                                 *
4
4
 *                                                                         *
5
5
 *   This program is free software; you can redistribute it and/or modify  *
29
29
#include <QVariantMap>
30
30
#include <QPointer>
31
31
#include <QMutex>
 
32
#include <QByteArray>
32
33
 
33
34
#include "types.h"
34
35
#include "util.h"
111
112
    Server() : port(6667), useSsl(false), sslVersion(0), useProxy(false), proxyType(QNetworkProxy::Socks5Proxy), proxyHost("localhost"), proxyPort(8080) {}
112
113
    Server(const QString &host, uint port, const QString &password, bool useSsl)
113
114
      : host(host), port(port), password(password), useSsl(useSsl), sslVersion(0),
114
 
        useProxy(false), proxyType(QNetworkProxy::Socks5Proxy), proxyHost("localhost"), proxyPort(8080) {}
 
115
        useProxy(false), proxyType(QNetworkProxy::Socks5Proxy), proxyHost("localhost"), proxyPort(8080) {}
115
116
    bool operator==(const Server &other) const;
116
117
    bool operator!=(const Server &other) const;
117
118
  };
170
171
 
171
172
  QString prefixes();
172
173
  QString prefixModes();
 
174
  void determinePrefixes();
173
175
 
174
176
  bool supports(const QString &param) const { return _supports.contains(param); }
175
177
  QString support(const QString &param) const;
270
272
 
271
273
  void emitConnectionError(const QString &);
272
274
 
273
 
private slots:
274
 
  void removeIrcUser(IrcUser *ircuser);
275
 
  void removeIrcChannel(IrcChannel *ircChannel);
276
 
  void removeChansAndUsers();
 
275
protected slots:
 
276
  virtual void removeIrcUser(IrcUser *ircuser);
 
277
  virtual void removeIrcChannel(IrcChannel *ircChannel);
 
278
  virtual void removeChansAndUsers();
277
279
 
278
280
signals:
279
281
  void aboutToBeDestroyed();
319
321
 
320
322
protected:
321
323
  inline virtual IrcChannel *ircChannelFactory(const QString &channelname) { return new IrcChannel(channelname, this); }
 
324
  inline virtual IrcUser *ircUserFactory(const QString &hostmask) { return new IrcUser(hostmask, this); }
322
325
 
323
326
private:
324
327
  QPointer<SignalProxy> _proxy;
358
361
  bool _unlimitedReconnectRetries;
359
362
  bool _rejoinChannels;
360
363
 
361
 
  void determinePrefixes();
362
 
 
363
364
  QTextCodec *_codecForServer;
364
365
  QTextCodec *_codecForEncoding;
365
366
  QTextCodec *_codecForDecoding;