identd: Move response construction to Request
[quassel.git] / src / core / identserver.h
index cff24b7..3c0fd2a 100644 (file)
@@ -33,6 +33,9 @@ struct Request {
     qint64 requestId;
 
     friend bool operator==(const Request &a, const Request &b);
+
+    void respondSuccess(const QString &user);
+    void respondError(const QString &error);
 };
 
 class IdentServer : public QObject {
@@ -54,7 +57,6 @@ private slots:
 
 private:
     bool responseAvailable(Request request);
-    void responseUnavailable(Request request);
 
     QString sysIdentForIdentity(const CoreIdentity *identity) const;