umbrello API Documentation

configurable.h

00001 /***************************************************************************
00002                           configurable.h
00003                              -------------------
00004     begin                : Mon Jan 13 2003
00005     copyright            : (C) 2003 by Andrew Sutton
00006     email                : ansutton@kent.edu
00007   Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org
00008 ***************************************************************************/
00009 
00010 /***************************************************************************
00011  *                                                                         *
00012  *   This program is free software; you can redistribute it and/or modify  *
00013  *   it under the terms of the GNU General Public License as published by  *
00014  *   the Free Software Foundation; either version 2 of the License, or     *
00015  *   (at your option) any later version.                                   *
00016  *                                                                         *
00017  ***************************************************************************/
00018 
00019 #ifndef UMBRELLO_CONFIGURABLE_H
00020 #define UMBRELLO_CONFIGURABLE_H
00021 
00022 #include <qstring.h>
00023 #include <qptrlist.h>
00024 
00025 // forward declarations
00026 class KLibrary;
00027 class KConfig;
00028 
00038 namespace Umbrello
00039 {
00040 // forward declarations
00041 class Plugin;
00042 
00067 class Configurable
00068 {
00069 public:
00071     Configurable();
00072 
00077     virtual ~Configurable();
00078 
00086     virtual bool configure() = 0;
00087 
00088 protected:
00100     bool loadPlugins(KConfig *config, const QString &key);
00101 
00109     bool unloadPlugins();
00110 
00111 private:
00112     typedef QPtrList<Plugin> PluginList;
00113 
00114     PluginList  _plugins;       
00115 };
00116 }
00117 
00118 #endif
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:07:55 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003