File indexing completed on 2024-04-14 04:51:55

0001 /* This file is part of the KDE project
0002    Copyright (C) 2004 - 2007 KGet Developers <kget@kde.org>
0003 
0004    This program is free software; you can redistribute it and/or
0005    modify it under the terms of the GNU General Public
0006    License as published by the Free Software Foundation; either
0007    version 2 of the License, or (at your option) any later version.
0008 */
0009 
0010 #ifndef PREFERENCESDIALOG_H
0011 #define PREFERENCESDIALOG_H
0012 
0013 #include "ui_dlgadvanced.h"
0014 
0015 #include <KConfigDialog>
0016 
0017 class QWidget;
0018 class KConfigSkeleton;
0019 
0020 class PreferencesDialog : public KConfigDialog
0021 {
0022     Q_OBJECT
0023 
0024 public:
0025     PreferencesDialog(QWidget *parent, KConfigSkeleton *config);
0026 
0027 Q_SIGNALS:
0028     void resetDefaults();
0029 
0030 private Q_SLOTS:
0031     void slotToggleAfterFinishAction(int state);
0032     void slotToggleAutomaticDeletion(int state);
0033     void slotCheckExpiryValue();
0034     void disableApplyButton();
0035     void enableApplyButton();
0036     void updateWidgetsDefault() override;
0037 
0038 private:
0039     Ui::DlgAdvanced dlgAdv;
0040 };
0041 
0042 #endif