~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to libs/solid/control/networkcdmainterface.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright 2008 Will Stephenson <wstephenson@kde.org>
 
3
 
 
4
This library is free software; you can redistribute it and/or
 
5
modify it under the terms of the GNU Lesser General Public
 
6
License as published by the Free Software Foundation; either
 
7
version 2.1 of the License, or (at your option) version 3, or any
 
8
later version accepted by the membership of KDE e.V. (or its
 
9
successor approved by the membership of KDE e.V.), which shall
 
10
act as a proxy defined in Section 6 of version 3 of the license.
 
11
 
 
12
This library is distributed in the hope that it will be useful,
 
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
15
Lesser General Public License for more details.
 
16
 
 
17
You should have received a copy of the GNU Lesser General Public 
 
18
License along with this library.  If not, see <http://www.gnu.org/licenses/>.
 
19
*/
 
20
 
 
21
#ifndef SOLID_CONTROL_CDMANETWORKINTERFACE_H
 
22
#define SOLID_CONTROL_CDMANETWORKINTERFACE_H
 
23
 
 
24
#include "networkserialinterface.h"
 
25
 
 
26
namespace Solid
 
27
{
 
28
namespace Control
 
29
{
 
30
    class CdmaNetworkInterfacePrivate;
 
31
    /**
 
32
     * This interface represents a CDMA cellular network interface
 
33
     */
 
34
    class SOLIDCONTROL_EXPORT CdmaNetworkInterface : public SerialNetworkInterface
 
35
    {
 
36
        Q_OBJECT
 
37
        Q_DECLARE_PRIVATE(CdmaNetworkInterface)
 
38
 
 
39
    public:
 
40
        /**
 
41
         * Creates a new CdmaNetworkInterface object.
 
42
         *
 
43
         * @param backendObject the network object provided by the backend
 
44
         */
 
45
        CdmaNetworkInterface(QObject *backendObject = 0);
 
46
 
 
47
        /**
 
48
         * Constructs a copy of a network.
 
49
         *
 
50
         * @param network the network to copy
 
51
         */
 
52
        CdmaNetworkInterface(const CdmaNetworkInterface &network);
 
53
 
 
54
        /**
 
55
         * Destroys a CdmaNetworkInterface object.
 
56
         */
 
57
        virtual ~CdmaNetworkInterface();
 
58
 
 
59
        /**
 
60
         * The NetworkInterface type.
 
61
         *
 
62
         * @return the NetworkInterface::Type.  This always returns NetworkInterface::Cdma
 
63
         */
 
64
        virtual NetworkInterface::Type type() const;
 
65
 
 
66
    Q_SIGNALS:
 
67
    protected:
 
68
        /**
 
69
         * @internal
 
70
         */
 
71
        CdmaNetworkInterface(CdmaNetworkInterfacePrivate &dd, QObject *backendObject);
 
72
 
 
73
        /**
 
74
         * @internal
 
75
         */
 
76
        CdmaNetworkInterface(CdmaNetworkInterfacePrivate &dd, const CdmaNetworkInterface &network);
 
77
 
 
78
        void makeConnections(QObject * source);
 
79
    private Q_SLOTS:
 
80
        void _k_destroyed(QObject *object);
 
81
    private:
 
82
        friend class NetworkInterface;
 
83
        friend class NetworkInterfacePrivate;
 
84
    };
 
85
} //Control
 
86
} //Solid
 
87
 
 
88
#endif // SOLID_CONTROL_CDMANETWORKINTERFACE_H
 
89