X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclientidentity.h;h=5935d41c3acf2f23c1e43fb8d6944ada1df3a3bd;hp=680ac956973799f8f34dde4456dbfbc8266cca29;hb=79fbcfb49f7cc92a89f0158ebac1a3006a559e8a;hpb=ac21cc48d22f0cf58a98b74754fa94564a8e3f45 diff --git a/src/client/clientidentity.h b/src/client/clientidentity.h index 680ac956..5935d41c 100644 --- a/src/client/clientidentity.h +++ b/src/client/clientidentity.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -33,9 +33,14 @@ public: CertIdentity(const Identity &other, QObject *parent = 0); CertIdentity(const CertIdentity &other, QObject *parent = 0); - void enableEditSsl(bool enable = true); +#ifdef HAVE_SSL inline bool isDirty() const { return _isDirty; } +#else + inline bool isDirty() const { return false; } +#endif +#ifdef HAVE_SSL + void enableEditSsl(bool enable = true); inline const QSslKey &sslKey() const { return _sslKey; } inline const QSslCertificate &sslCert() const { return _sslCert; } @@ -56,11 +61,13 @@ private: bool _isDirty; QSslKey _sslKey; QSslCertificate _sslCert; +#endif //HAVE_SSL }; // ======================================== // ClientCertManager // ======================================== +#ifdef HAVE_SSL class ClientCertManager : public CertManager { Q_OBJECT @@ -77,5 +84,6 @@ public slots: private: CertIdentity *_certIdentity; }; +#endif //HAVE_SSL #endif //CLIENTIDENTITY_H