• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

util

environmentgrouplist.h

00001 /* This file is part of KDevelop
00002 Copyright 2007 Andreas Pakulat <apaku@gmx.de>
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 library 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 GNU
00012 Library General Public License for more details.
00013 
00014 You should have received a copy of the GNU Library General Public License
00015 along with this library; see the file COPYING.LIB.  If not, write to
00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017 Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef ENVIRONMENTGROUPLIST_H
00021 #define ENVIRONMENTGROUPLIST_H
00022 
00023 #include "utilexport.h"
00024 #include <ksharedconfig.h>
00025 
00026 class KConfig;
00027 template <typename T1, typename T2> class QMap;
00028 class QString;
00029 class QStringList;
00030 
00031 namespace KDevelop
00032 {
00033 
00069 class KDEVPLATFORMUTIL_EXPORT EnvironmentGroupList
00070 {
00071 public:
00076     EnvironmentGroupList( KSharedConfigPtr config );
00077     EnvironmentGroupList( KConfig* config );
00078     ~EnvironmentGroupList();
00079 
00084     QStringList createEnvironment(const QString& group, const QStringList& defaultEnvironment ) const;
00085 
00092     const QMap<QString, QString> variables( const QString& group ) const;
00093 
00099     QString defaultGroup() const;
00100 
00105     QStringList groups() const;
00106 
00107 protected:
00108     EnvironmentGroupList();
00118     QMap<QString, QString>& variables( const QString& group );
00119 
00124     void setDefaultGroup( const QString& group );
00125 
00130     void saveSettings( KConfig* config ) const;
00131 
00132     void loadSettings( KConfig* config );
00133     void removeGroup( const QString& group );
00134 private:
00135     class EnvironmentGroupListPrivate* const d;
00136 
00137 };
00138 
00139 }
00140 
00141 #endif

util

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

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.9-20090814
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