2 KNode, the KDE newsreader
3 Copyright (c) 1999-2005 the KNode authors.
4 See file AUTHORS for details
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10 You should have received a copy of the GNU General Public License
11 along with this program; if not, write to the Free Software Foundation,
12 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
26 class KNArticleCollection
;
35 /** This class handles group expiration and folder compaction. */
42 void appendCollection(KNArticleCollection
*c
) { mColList
.append( c
); }
46 void expireGroup( KNGroup
*g
, bool showResult
= false );
47 /** Compacts the given folder, ie. remove all deleted messages from the
49 * @param f The folder to compact.
51 void compactFolder(KNFolder
*f
);
55 /** Cleanup progress dialog. */
56 class ProgressDialog
: public KDialog
{
59 /** Creates a new progress dialog.
60 * @param steps The number of progress steps.
61 * @param parent The parent widget.
63 ProgressDialog( int steps
, QWidget
*parent
= 0 );
66 /** Shows a message in the progress dialog.
67 * @param s The message to show.
69 void showMessage(const QString
&s
);
70 /** Increments the progress counter by one. */
74 void closeEvent(QCloseEvent
*e
);
77 QProgressBar
*mProgressBar
;
81 QList
<KNArticleCollection
*> mColList
;