Add support for Elliptic Curve keys for CertFP
[quassel.git] / src / common / internalpeer.h
index ada5f09..55cfeae 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2013 by the Quassel Project                        *
+ *   Copyright (C) 2005-2018 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -42,8 +42,12 @@ public:
     InternalPeer(QObject *parent = 0);
     virtual ~InternalPeer();
 
+    Protocol::Type protocol() const { return Protocol::InternalProtocol; }
     QString description() const;
 
+    virtual QString address() const;
+    virtual quint16 port() const;
+
     SignalProxy *signalProxy() const;
     void setSignalProxy(SignalProxy *proxy);
 
@@ -61,6 +65,18 @@ public:
     void dispatch(const Protocol::InitRequest &msg);
     void dispatch(const Protocol::InitData &msg);
 
+    /* These are not needed for InternalPeer */
+    void dispatch(const Protocol::RegisterClient &) {}
+    void dispatch(const Protocol::ClientDenied &) {}
+    void dispatch(const Protocol::ClientRegistered &) {}
+    void dispatch(const Protocol::SetupData &) {}
+    void dispatch(const Protocol::SetupFailed &) {}
+    void dispatch(const Protocol::SetupDone &) {}
+    void dispatch(const Protocol::Login &) {}
+    void dispatch(const Protocol::LoginFailed &) {}
+    void dispatch(const Protocol::LoginSuccess &) {}
+    void dispatch(const Protocol::SessionState &) {}
+
 public slots:
     void close(const QString &reason = QString());