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
18 #include "knarticlecollection.h"
35 /** This class handles group expiration and folder compaction. */
43 * Add a collection to handle.
45 void appendCollection( KNArticleCollection::Ptr c
)
46 { mColList
.append( c
); }
50 void expireGroup( KNGroup::Ptr g
, bool showResult
= false );
51 /** Compacts the given folder, ie. remove all deleted messages from the
53 * @param f The folder to compact.
55 void compactFolder( KNFolder::Ptr f
);
59 /** Cleanup progress dialog. */
60 class ProgressDialog
: public KDialog
{
63 /** Creates a new progress dialog.
64 * @param steps The number of progress steps.
65 * @param parent The parent widget.
67 explicit ProgressDialog( int steps
, QWidget
*parent
= 0 );
70 /** Shows a message in the progress dialog.
71 * @param s The message to show.
73 void showMessage(const QString
&s
);
74 /** Increments the progress counter by one. */
78 void closeEvent(QCloseEvent
*e
);
81 QProgressBar
*mProgressBar
;
85 KNArticleCollection::List mColList
;