Logo Search packages:      
Sourcecode: kbackup version File versions  Download package

MainWidget.hxx

//**************************************************************************
//   (c) 2006 - 2010 Martin Koller, kollix@aon.at
//
//   This program is free software; you can redistribute it and/or modify
//   it under the terms of the GNU General Public License as published by
//   the Free Software Foundation, version 2 of the License
//
//**************************************************************************

#ifndef _MAIN_WIDGET_H_
#define _MAIN_WIDGET_H_

#include <QWidget>
#include <QTime>
#include "kio/global.h"
#include <ui_MainWidgetBase.h>

class Selector;

00020 class MainWidget : public QWidget
{
  Q_OBJECT

  public:
    MainWidget(QWidget *parent);

    void setSelector(Selector * s);
    KLineEdit *getTargetLineEdit() { return ui.targetDir; }

  public slots:
    void setTargetURL(const QString &url);
    void startBackup();
    void setIsIncrementalBackup(bool incremental);

  private:
    Selector *selector;
    Ui::MainWidgetBase ui;

  private slots:
    void getMediaSize();
    void updateElapsed(const QTime &);
    void updateTotalBytes();
    void setFileProgress(int percent);
    void setCapacity(KIO::filesize_t bytes);
};

#endif

Generated by  Doxygen 1.6.0   Back to index