File indexing completed on 2024-03-24 05:01:40
0001 /* 0002 Copyright (C) 2010 Collabora Ltd <info@collabora.co.uk> 0003 @author George Kiagiadakis <george.kiagiadakis@collabora.co.uk> 0004 0005 This program is free software; you can redistribute it and/or 0006 modify it under the terms of the GNU General Public 0007 License as published by the Free Software Foundation; either 0008 version 2 of the License, or (at your option) any later version. 0009 0010 This program is distributed in the hope that it will be useful, 0011 but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0013 GNU General Public License for more details. 0014 0015 You should have received a copy of the GNU Lesser General Public License 0016 along with this program. If not, see <http://www.gnu.org/licenses/>. 0017 */ 0018 #ifndef INVITATIONSRFBCLIENT_H 0019 #define INVITATIONSRFBCLIENT_H 0020 0021 #include "rfbclient.h" 0022 0023 class InvitationsRfbClient : public RfbClient 0024 { 0025 public: 0026 explicit InvitationsRfbClient(rfbClientPtr client, QObject* parent = nullptr) 0027 : RfbClient(client, parent) {} 0028 }; 0029 0030 0031 class PendingInvitationsRfbClient : public PendingRfbClient 0032 { 0033 Q_OBJECT 0034 public: 0035 explicit PendingInvitationsRfbClient(rfbClientPtr client, QObject *parent = nullptr); 0036 ~PendingInvitationsRfbClient() override; 0037 0038 protected Q_SLOTS: 0039 void processNewClient() override; 0040 bool checkPassword(const QByteArray & encryptedPassword) override; 0041 0042 private Q_SLOTS: 0043 void dialogAccepted(); 0044 0045 private: 0046 struct Private; 0047 Private* const d; 0048 }; 0049 0050 #endif // INVITATIONSRFBCLIENT_H