~ubuntu-branches/ubuntu/vivid/krusader/vivid-proposed

« back to all changes in this revision

Viewing changes to krusader/Synchronizer/synchronizedialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-05-05 22:26:37 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505222637-ydv3cwjwy365on2r
Tags: 1:2.1.0~beta1-1ubuntu1
* Merge from Debian Unstable.  Remaining changes:
  - Retain Kubuntu doc path

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 *                                                                         *
29
29
 ***************************************************************************/
30
30
 
31
 
#ifndef __SYNCHRONIZE_DIALOG__
32
 
#define __SYNCHRONIZE_DIALOG__
 
31
#ifndef SYNCHRONIZEDIALOG_H
 
32
#define SYNCHRONIZEDIALOG_H
 
33
 
 
34
#include <QtGui/QDialog>
 
35
#include <QtGui/QPushButton>
 
36
#include <QtGui/QCheckBox>
 
37
#include <QtGui/QLabel>
 
38
#include <qprogressbar.h>
33
39
 
34
40
#include "../VFS/vfs.h"
35
41
#include "synchronizer.h"
36
 
#include <qdialog.h>
37
 
#include <qpushbutton.h>
38
 
#include <qcheckbox.h>
39
 
#include <qlabel.h>
40
 
#include <qprogressbar.h>
41
42
 
42
43
class SynchronizeDialog : QDialog
43
44
{
44
 
  Q_OBJECT
45
 
  
46
 
  public:
47
 
    SynchronizeDialog(  QWidget*, Synchronizer *sync,
48
 
                        int, KIO::filesize_t, int, KIO::filesize_t, int, KIO::filesize_t, int);
 
45
    Q_OBJECT
 
46
 
 
47
public:
 
48
    SynchronizeDialog(QWidget*, Synchronizer *sync,
 
49
                      int, KIO::filesize_t, int, KIO::filesize_t, int, KIO::filesize_t, int);
49
50
    ~SynchronizeDialog();
50
51
 
51
 
    inline bool wasSyncronizationStarted()    { return syncStarted; }
52
 
    
53
 
  public slots:
 
52
    inline bool wasSyncronizationStarted()    {
 
53
        return syncStarted;
 
54
    }
 
55
 
 
56
public slots:
54
57
    void startSynchronization();
55
58
    void synchronizationFinished();
56
 
    void processedSizes( int, KIO::filesize_t, int, KIO::filesize_t, int, KIO::filesize_t);
 
59
    void processedSizes(int, KIO::filesize_t, int, KIO::filesize_t, int, KIO::filesize_t);
57
60
    void pauseOrResume();
58
61
    void pauseAccepted();
59
62
 
60
 
  private:
 
63
private:
61
64
    QProgressBar  *progress;
62
 
    
 
65
 
63
66
    QCheckBox     *cbRightToLeft;
64
67
    QCheckBox     *cbLeftToRight;
65
68
    QCheckBox     *cbDeletable;
69
72
    QLabel        *lbDeletable;
70
73
 
71
74
    QCheckBox     *cbOverwrite;
72
 
    
 
75
 
73
76
    QPushButton   *btnStart;
74
77
    QPushButton   *btnPause;
75
 
    
 
78
 
76
79
    Synchronizer  *synchronizer;
77
80
 
78
81
    int               leftCopyNr;