kmail

configuredialog.h

Go to the documentation of this file.
00001 /*   -*- c++ -*-
00002  *   kmail: KDE mail client
00003  *   This file: Copyright (C) 2000 Espen Sand, espen@kde.org
00004  *              Copyright (C) 2001-2002 Marc Mutz <mutz@kde.org>
00005  *
00006  *   This program is free software; you can redistribute it and/or modify
00007  *   it under the terms of the GNU General Public License as published by
00008  *   the Free Software Foundation; either version 2 of the License, or
00009  *   (at your option) any later version.
00010  *
00011  *   This program is distributed in the hope that it will be useful,
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *   GNU General Public License for more details.
00015  *
00016  *   You should have received a copy of the GNU General Public License
00017  *   along with this program; if not, write to the Free Software
00018  *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019  *
00020  */
00021 
00022 #ifndef _CONFIGURE_DIALOG_H_
00023 #define _CONFIGURE_DIALOG_H_
00024 
00025 #include <qguardedptr.h>
00026 #include <kcmultidialog.h>
00027 
00028 class KConfig;
00029 class ProfileDialog;
00030 namespace KMail {
00031     class ImapAccountBase;
00032 }
00033 
00034 class ConfigureDialog : public KCMultiDialog
00035 {
00036   Q_OBJECT
00037 
00038 public:
00039   ConfigureDialog( QWidget *parent=0, const char *name=0, bool modal=true );
00040   ~ConfigureDialog();
00041 
00042 signals:
00050   void installProfile( KConfig *profile );
00051 protected:
00052   void hideEvent( QHideEvent *i );
00053 protected slots:
00057   void slotApply();
00058 
00062   void slotOk();
00063 
00067   void slotUser2();
00068 
00069 private:
00070   QGuardedPtr<ProfileDialog>  mProfileDialog;
00071 };
00072 
00078 class AccountUpdater : public QObject {
00079   Q_OBJECT
00080   public:
00081     AccountUpdater(KMail::ImapAccountBase *account);
00082     void update();
00083   public slots:
00084     void namespacesFetched();
00085   private:
00086     KMail::ImapAccountBase *mAccount;
00087 };
00088 
00089 
00090 #endif