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

SolidModules

backendchooser.h

Go to the documentation of this file.
00001 /*  This file is part of the KDE project
00002     Copyright (C) 2006 Kevin Ottens <ervin@kde.org>
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Library General Public
00006     License as published by the Free Software Foundation; either
00007     version 2 of the License, or (at your option) any later version.
00008 
00009     This program is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012     GNU General Public License for more details.
00013 
00014     You should have received a copy of the GNU General Public License
00015     along with this program; if not, write to the Free Software
00016     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017     02110-1301, USA.
00018 
00019 */
00020 
00021 #ifndef BACKENDCHOOSER_H
00022 #define BACKENDCHOOSER_H
00023 
00024 #include "ui_backendchooser.h"
00025 
00026 #include <QWidget>
00027 #include <QHash>
00028 #include <QString>
00029 
00030 #include <kservice.h>
00031 
00032 class BackendChooser : public QWidget
00033 {
00034     Q_OBJECT
00035 public:
00036     BackendChooser(QWidget *parent, const QString &backendType);
00037 
00038     void load();
00039     void save();
00040     void defaults();
00041 
00042 private Q_SLOTS:
00043     void slotSelectionChanged();
00044     void slotUpClicked();
00045     void slotDownClicked();
00046 
00047 Q_SIGNALS:
00048     void changed(bool state);
00049 
00050 private:
00051     void loadServicesInView(const KService::List &offers);
00052     KService::List servicesFromView();
00053 
00054     Ui::BackendChooser m_ui;
00055     KService::List m_initServices;
00056 
00057     QString m_backendType;
00058     QHash<QString, KService::Ptr> m_services;
00059 };
00060 
00061 #endif

SolidModules

Skip menu "SolidModules"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
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