Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

UrlSettings.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2002 by Yann Hodique                                    *
00003  *   Yann.Hodique@lifl.fr                                                  *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 
00011 #ifndef _URLSETTINGS_H_
00012 #define _URLSETTINGS_H_
00013 
00014 #include "urlsettingsbase.h"
00015 
00016 #include <qwidget.h>
00017 #include <qstring.h>
00018 #include <qmap.h>
00019 
00024 class UrlSettings : public UrlSettingsBase {
00025     Q_OBJECT
00026 
00027 public:
00028 
00029     class UrlItem {
00030     public:
00031         UrlItem(QString n="", QString p="", QString c="") {
00032             name = n;
00033             prefix = p;
00034             command = c;
00035         }
00036         QString name;
00037         QString prefix;
00038         QString command;
00039     };
00040 
00041     UrlSettings(QWidget *parent = 0, const char *name = 0);
00042     ~UrlSettings();
00043 
00044     QMap<QString,UrlItem> map;
00045 
00046 public slots:
00047     void addUrlItem(UrlItem &);
00048     void delUrlItem(const QString&);
00049     void slotAdd();
00050     void slotDel();
00051     void slotUpdateInfo(const QString &);
00052 
00053 };
00054 
00055 #endif

Generated on Sat May 10 15:09:28 2003 for qnet by doxygen1.3