1 /* 2 * %kadu copyright begin% 3 * Copyright 2011 Wojciech Treter (juzefwt@gmail.com) 4 * Copyright 2014 Bartosz Brachaczek (b.brachaczek@gmail.com) 5 * Copyright 2011, 2013, 2014 Rafał Przemysław Malinowski (rafal.przemyslaw.malinowski@gmail.com) 6 * %kadu copyright end% 7 * 8 * This program is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU General Public License as 10 * published by the Free Software Foundation; either version 2 of 11 * the License, or (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program. If not, see <http://www.gnu.org/licenses/>. 20 */ 21 22 #ifndef NETWORK_PROXY_H 23 #define NETWORK_PROXY_H 24 25 #include "network/proxy/network-proxy-shared.h" 26 #include "storage/shared-base.h" 27 #include "exports.h" 28 29 class KADUAPI NetworkProxy : public SharedBase<NetworkProxyShared> 30 { 31 KaduSharedBaseClass(NetworkProxy) 32 33 public: 34 static NetworkProxy null; 35 36 NetworkProxy(); 37 NetworkProxy(NetworkProxyShared *data); 38 explicit NetworkProxy(QObject *data); 39 NetworkProxy(const NetworkProxy ©); 40 41 virtual ~NetworkProxy(); 42 43 KaduSharedBase_PropertyCRW(QString, type, Type) 44 KaduSharedBase_PropertyCRW(QString, address, Address) 45 KaduSharedBase_Property(int, port, Port) 46 KaduSharedBase_PropertyCRW(QString, user, User) 47 KaduSharedBase_PropertyCRW(QString, password, Password) 48 KaduSharedBase_PropertyCRW(QString, pollingUrl, PollingUrl) 49 KaduSharedBase_PropertyRead(QString, displayName, DisplayName) 50 51 }; 52 53 Q_DECLARE_METATYPE(NetworkProxy) 54 55 #endif // NETWORK_PROXY_H 56