~vcs-imports/bibletime/trunk

« back to all changes in this revision

Viewing changes to bibletime/frontend/cmoduleindexdialog.h

  • Committer: mgruner
  • Date: 2007-05-08 15:51:07 UTC
  • Revision ID: vcs-imports@canonical.com-20070508155107-0rj7jdmm5ivf8685
-imported source and data files to new svn module
-this is where KDE4-based development will take place

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
// C++ Interface: cmoduleindexdialog
 
3
//
 
4
// Description: 
 
5
//
 
6
//
 
7
// Author: The BibleTime team <info@bibletime.info>, (C) 2006
 
8
//
 
9
// Copyright: See COPYING file that comes with this distribution
 
10
//
 
11
//
 
12
#ifndef CMODULEINDEXDIALOG_H
 
13
#define CMODULEINDEXDIALOG_H
 
14
 
 
15
#include "backend/cswordmoduleinfo.h"
 
16
 
 
17
//Qt includes
 
18
#include <qobject.h>
 
19
 
 
20
//forward declaration
 
21
class KProgressDialog;
 
22
 
 
23
/**
 
24
 * This dialog is used to index a list of modules and to show progress for that.\
 
25
 * While the indexing is in progress it creates a blocking, top level dialog which shows the progress
 
26
 * while the indexing is done.
 
27
 *
 
28
 * @author The BibleTime team <info@bibletime.info>
 
29
*/
 
30
class CModuleIndexDialog : public QObject {
 
31
        Q_OBJECT
 
32
public:
 
33
        /** Get the singleton instance.
 
34
         *
 
35
         */
 
36
        static CModuleIndexDialog* getInstance();
 
37
 
 
38
        /** Starts the actual indexing. It shows the dialog with progress information.
 
39
         */
 
40
        void indexAllModules( const ListCSwordModuleInfo& modules );
 
41
        
 
42
        /** Indexes all modules in the list which don't have an index yet.
 
43
         */
 
44
        void indexUnindexedModules( const ListCSwordModuleInfo& modules );
 
45
 
 
46
private:
 
47
        KProgressDialog* progress;
 
48
        int m_currentModuleIndex;
 
49
        
 
50
protected slots:
 
51
    void slotModuleProgress( int percentage );
 
52
        void slotFinished();
 
53
};
 
54
 
 
55
#endif