• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

knode

  • sources
  • kde-4.12
  • kdepim
  • knode
kncleanup.h
Go to the documentation of this file.
1 /*
2  KNode, the KDE newsreader
3  Copyright (c) 1999-2005 the KNode authors.
4  See file AUTHORS for details
5 
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
13 */
14 
15 #ifndef KNCLEANUP_H
16 #define KNCLEANUP_H
17 
18 #include "knarticlecollection.h"
19 #include "kngroup.h"
20 
21 #include <QList>
22 #include <KDialog>
23 
24 class QProgressBar;
25 class QCloseEvent;
26 class QLabel;
27 
28 class KNFolder;
29 
30 namespace KNode {
31 class Cleanup;
32 }
33 
34 
36 class KNCleanUp {
37 
38  public:
39  KNCleanUp();
40  ~KNCleanUp();
41 
45  void appendCollection( KNArticleCollection::Ptr c )
46  { mColList.append( c ); }
47  void start();
48  void reset();
49 
50  void expireGroup( KNGroup::Ptr g, bool showResult = false );
55  void compactFolder( KNFolder::Ptr f );
56 
57  protected:
58 
60  class ProgressDialog : public KDialog {
61 
62  public:
67  explicit ProgressDialog( int steps, QWidget *parent = 0 );
68  ~ProgressDialog();
69 
73  void showMessage(const QString &s);
75  void doProgress();
76 
77  protected:
78  void closeEvent(QCloseEvent *e);
79 
80  QLabel *m_sg;
81  QProgressBar *mProgressBar;
82  };
83 
84  ProgressDialog *d_lg;
85  KNArticleCollection::List mColList;
86 
87 };
88 
89 #endif
KNCleanUp::~KNCleanUp
~KNCleanUp()
Definition: kncleanup.cpp:46
KNCleanUp::expireGroup
void expireGroup(KNGroup::Ptr g, bool showResult=false)
Definition: kncleanup.cpp:88
KNCleanUp::mColList
KNArticleCollection::List mColList
Definition: kncleanup.h:85
KNCleanUp::KNCleanUp
KNCleanUp()
Definition: kncleanup.cpp:41
QWidget
KNCleanUp::ProgressDialog::mProgressBar
QProgressBar * mProgressBar
Definition: kncleanup.h:81
KNCleanUp::compactFolder
void compactFolder(KNFolder::Ptr f)
Compacts the given folder, ie.
Definition: kncleanup.cpp:192
KNCleanUp::reset
void reset()
Definition: kncleanup.cpp:80
KDialog
KNCleanUp::ProgressDialog::m_sg
QLabel * m_sg
Definition: kncleanup.h:80
KNFolder::Ptr
boost::shared_ptr< KNFolder > Ptr
Shared pointer to a KNFolder.
Definition: knfolder.h:38
kngroup.h
KNCleanUp::ProgressDialog::doProgress
void doProgress()
Increments the progress counter by one.
Definition: kncleanup.cpp:306
KNCleanUp
This class handles group expiration and folder compaction.
Definition: kncleanup.h:36
KNCleanUp::ProgressDialog
Cleanup progress dialog.
Definition: kncleanup.h:60
KNCleanUp::appendCollection
void appendCollection(KNArticleCollection::Ptr c)
Add a collection to handle.
Definition: kncleanup.h:45
KNCleanUp::ProgressDialog::closeEvent
void closeEvent(QCloseEvent *e)
Definition: kncleanup.cpp:312
KNCleanUp::start
void start()
Definition: kncleanup.cpp:52
knarticlecollection.h
KNCleanUp::d_lg
ProgressDialog * d_lg
Definition: kncleanup.h:84
KNCleanUp::ProgressDialog::showMessage
void showMessage(const QString &s)
Shows a message in the progress dialog.
Definition: kncleanup.cpp:300
QLabel
KNArticleCollection::Ptr
boost::shared_ptr< KNArticleCollection > Ptr
Shared pointer to a KNArticle.
Definition: knarticlecollection.h:82
KNFolder
Representation of a folder.
Definition: knfolder.h:30
KNCleanUp::ProgressDialog::ProgressDialog
ProgressDialog(int steps, QWidget *parent=0)
Creates a new progress dialog.
Definition: kncleanup.cpp:249
KNCleanUp::ProgressDialog::~ProgressDialog
~ProgressDialog()
Definition: kncleanup.cpp:295
QList< KNArticleCollection::Ptr >
KNGroup::Ptr
boost::shared_ptr< KNGroup > Ptr
Shared pointer to a KNGroup.
Definition: kngroup.h:47
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

knode

Skip menu "knode"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal