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


//   (c) 2006 - 2009 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_WINDOW_H_
#define _MAIN_WINDOW_H_

#include <kxmlguiwindow.h>

class Selector;
class MainWidget;
class KSystemTrayIcon;
class KToggleAction;
class KAction;
class KRecentFilesAction;
class KUrl;

00023 class MainWindow : public KXmlGuiWindow

    void loadProfile(const QString &fileName, bool adaptTreeWidth = false);

    // start backup and quit application after it's finished
    void runBackup();

    virtual bool queryClose();
    virtual bool queryExit();

  private slots:
    void loadProfile();
    void saveProfileAs();
    void saveProfile(QString fileName = QString());
    void profileSettings();
    void newProfile();
    void loggingSlot(const QString &message);
    void changeSystrayTip();
    void inProgress(bool);
    void dockInSysTray();
    void maybeQuit();
    void recentProfileSelected(const KUrl &url);
    void enableAllMessages();

    bool stopAllowed();
    void setLoadedProfile(const QString &name);

    Selector *selector;
    MainWidget *mainWidget;
    KSystemTrayIcon *sysTray;
    QString lastLog;
    KToggleAction *docked;
    KAction *startBackupAction;
    KAction *cancelBackupAction;
    KRecentFilesAction *recentFiles;
    bool autorun;
    QString loadedProfile;


Generated by  Doxygen 1.6.0   Back to index