mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
rbutilQt:Ups.. the forgotten uninstall files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14296 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
451dec17fe
commit
e40b4df140
4 changed files with 339 additions and 0 deletions
65
rbutil/rbutilqt/uninstall.h
Normal file
65
rbutil/rbutilqt/uninstall.h
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
/***************************************************************************
|
||||
* __________ __ ___.
|
||||
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
* \/ \/ \/ \/ \/
|
||||
*
|
||||
* Copyright (C) 2007 by Dominik Wenger
|
||||
* $Id: uninstall.h 13990 2007-07-25 22:26:10Z Dominik Wenger $
|
||||
*
|
||||
* All files in this archive are subject to the GNU General Public License.
|
||||
* See the file COPYING in the source tree root for full license agreement.
|
||||
*
|
||||
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||
* KIND, either express or implied.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
#ifndef UNINSTALL_H
|
||||
#define UNINSTALL_H
|
||||
|
||||
|
||||
|
||||
#include <QtGui>
|
||||
|
||||
|
||||
#include "progressloggerinterface.h"
|
||||
|
||||
|
||||
class Uninstaller : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
Uninstaller(QObject* parent,QString mountpoint) ;
|
||||
~Uninstaller(){}
|
||||
|
||||
void deleteAll(ProgressloggerInterface* dp);
|
||||
void uninstall(ProgressloggerInterface* dp);
|
||||
|
||||
bool uninstallPossible();
|
||||
|
||||
QStringList getAllSections();
|
||||
|
||||
void setSections(QStringList sections) {uninstallSections = sections;}
|
||||
|
||||
|
||||
private slots:
|
||||
|
||||
|
||||
private:
|
||||
bool recRmdir( QString &dirName );
|
||||
|
||||
QString m_mountpoint;
|
||||
|
||||
QStringList uninstallSections;
|
||||
|
||||
ProgressloggerInterface* m_dp;
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue