1/*
2 Copyright (c) 2010 Kevin Funk <kevin.funk@kdab.com>
3
4 This library is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or (at your
7 option) any later version.
8
9 This library is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to the
16 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 02110-1301, USA.
18
19*/
20
21#ifndef NETWORKACCESSHELPER_H
22#define NETWORKACCESSHELPER_H
23
24#include "kpimutils_export.h"
25
26#include <QtCore/QObject>
27
28namespace KPIMUtils {
29
30class NetworkAccessHelperPrivate;
31
32/**
33 * Wrapper around Solid::NetworkingControl (komobranch)
34 *
35 * This can be used for all platforms, but is just implemented for Windows CE
36 * Does nothing on other platforms
37 *
38 * Basically this is to prevent ifdef'ing all the classes that make use of
39 * the NetworkingControl class that is only available in kdelibs from the
40 * komobranch at the moment
41 *
42 * @deprecated This class is non-functional and will be removed in KF 5.
43 */
44class KPIMUTILS_DEPRECATED_EXPORT NetworkAccessHelper
45 : public QObject
46{
47 Q_OBJECT
48 Q_DECLARE_PRIVATE( NetworkAccessHelper )
49
50 public:
51 explicit NetworkAccessHelper( QObject *parent = 0 );
52 virtual ~NetworkAccessHelper();
53
54 void establishConnection();
55 void releaseConnection();
56
57 private:
58 NetworkAccessHelperPrivate *d_ptr;
59};
60
61}
62
63#endif // NETWORKACCESSHELPER_H
64