Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 157a672173864b68ac25ba5510b5226d > files > 12

kmuddy-devel-1.0-0.pre4.1mdv2009.1.i586.rpm

//
// C++ Interface: cdialoglist
//
// Description: List of dialogs.
//
//
// Author: Tomas Mecir <kmuddy@kmuddy.com>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef CDIALOGLIST_H
#define CDIALOGLIST_H

#include "cactionbase.h"
#include <map>

#include <kmuddy_export.h>

class KDialog;

using namespace std;

/**
This class stores dialog boxes. Its purpose is to allow plug-ins to extend these dialogs in various ways.

	@author Tomas Mecir <kmuddy@kmuddy.com>
*/
class KMUDDY_EXPORT cDialogList : public cActionBase {
 public:
  static cDialogList *self ();
  ~cDialogList();
  KDialog *getDialog (const QString &name);
  void addDialog (const QString &name, KDialog *dlg);
  void removeDialog (const QString &name);
 private:
  cDialogList();
  static cDialogList *_self;
  map<QString, KDialog *> dialogs;
};

#endif