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

SessionsDialog.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 _SESSIONSDIALOG_H_
00012 #define _SESSIONSDIALOG_H_
00013 
00014 #include "sessionsdialogbase.h"
00015 
00016 #include <qwidget.h>
00017 #include <qstring.h>
00018 #include <qmap.h>
00019 
00024 class SessionsDialog : public SessionsDialogBase {
00025     Q_OBJECT
00026 
00027 public:
00028 
00029     class SessionItem {
00030     public:
00031         SessionItem(QString n="", QString h="", QString p="", QString l="", QString x="", bool b=false) {
00032             name = n;
00033             host = h;
00034             port = p;
00035             login = l;
00036             password = x;
00037             autoconnect = b;
00038         }
00039         QString name;
00040         QString host;
00041         QString port;
00042         QString login;
00043         QString password;
00044         bool autoconnect;
00045     };
00046 
00047     SessionsDialog(QWidget *parent = 0, const char *name = 0);
00048     ~SessionsDialog();
00049 
00050     QMap<QString,SessionItem> map;
00051 
00052 public slots:
00053     void addSessionItem(SessionItem &, int index = -1);
00054     void delSessionItem(const QString&);
00055     void slotSubs();
00056     void slotAdd();
00057     void slotDel();
00058     void slotDown();
00059     void slotUp();
00060     void slotUpdateInfo(const QString &);
00061 
00062 };
00063 
00064 #endif

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