• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libsolidcontrol

networkcdmainterface.cpp

Go to the documentation of this file.
00001 /*
00002 Copyright 2008 Will Stephenson <wstephenson@kde.org>
00003 
00004 This library is free software; you can redistribute it and/or
00005 modify it under the terms of the GNU Lesser General Public
00006 License as published by the Free Software Foundation; either
00007 version 2.1 of the License, or (at your option) version 3, or any
00008 later version accepted by the membership of KDE e.V. (or its
00009 successor approved by the membership of KDE e.V.), which shall
00010 act as a proxy defined in Section 6 of version 3 of the license.
00011 
00012 This library is distributed in the hope that it will be useful,
00013 but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015 Lesser General Public License for more details.
00016 
00017 You should have received a copy of the GNU Lesser General Public 
00018 License along with this library.  If not, see <http://www.gnu.org/licenses/>.
00019 */
00020 
00021 #include "networkcdmainterface.h"
00022 #include "networkcdmainterface_p.h"
00023 
00024 #include "frontendobject_p.h"
00025 #include "soliddefs_p.h"
00026 #include "ifaces/wirelessaccesspoint.h"
00027 
00028 Solid::Control::CdmaNetworkInterface::CdmaNetworkInterface(QObject *backendObject)
00029     : SerialNetworkInterface(*new CdmaNetworkInterfacePrivate(this), backendObject)
00030 {
00031     Q_D(CdmaNetworkInterface);
00032     d->setBackendObject(backendObject);
00033     makeConnections( backendObject );
00034 }
00035 
00036 Solid::Control::CdmaNetworkInterface::CdmaNetworkInterface(const CdmaNetworkInterface &networkinterface)
00037     : SerialNetworkInterface(*new CdmaNetworkInterfacePrivate(this), networkinterface)
00038 {
00039     Q_D(CdmaNetworkInterface);
00040     d->setBackendObject(networkinterface.d_ptr->backendObject());
00041     makeConnections( networkinterface.d_ptr->backendObject() );
00042 }
00043 
00044 Solid::Control::CdmaNetworkInterface::CdmaNetworkInterface(CdmaNetworkInterfacePrivate &dd, QObject *backendObject)
00045     : SerialNetworkInterface(dd, backendObject)
00046 {
00047     makeConnections( backendObject );
00048 }
00049 
00050 Solid::Control::CdmaNetworkInterface::CdmaNetworkInterface(CdmaNetworkInterfacePrivate &dd, const CdmaNetworkInterface &networkinterface)
00051     : SerialNetworkInterface(dd, networkinterface.d_ptr->backendObject())
00052 {
00053     makeConnections( networkinterface.d_ptr->backendObject() );
00054 }
00055 
00056 Solid::Control::CdmaNetworkInterface::~CdmaNetworkInterface()
00057 {
00058 }
00059 
00060 Solid::Control::NetworkInterface::Type Solid::Control::CdmaNetworkInterface::type() const
00061 {
00062     return Cdma;
00063 }
00064 
00065 void Solid::Control::CdmaNetworkInterface::makeConnections(QObject * source)
00066 {
00067     connect(source, SIGNAL(accessPointAppeared(const QString &)),
00068             this, SLOT(_k_accessPointAdded(const QString &)));
00069 }
00070 
00071 void Solid::Control::CdmaNetworkInterfacePrivate::setBackendObject(QObject *object)
00072 {
00073     SerialNetworkInterfacePrivate::setBackendObject(object);
00074 
00075     if (object) {
00076         QObject::connect(object, SIGNAL(bitRateChanged(int)),
00077                          parent(), SIGNAL(bitRateChanged(int)));
00078     }
00079 }
00080 
00081 void Solid::Control::CdmaNetworkInterface::_k_destroyed(QObject *object)
00082 {
00083     Q_UNUSED(object);
00084 }
00085 // vim: sw=4 sts=4 et tw=100

libsolidcontrol

Skip menu "libsolidcontrol"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal