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


//   (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;

class MainWidget : public QWidget

    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);

    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);


Generated by  Doxygen 1.6.0   Back to index