Support "eject" on OS X.
[maemo-rb.git] / rbutil / rbutilqt / base / bootloaderinstallipod.h
blobac69c608d6ad260901a845e4d3f2d43a11fc6ebd
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2008 by Dominik Riebeling
11 * All files in this archive are subject to the GNU General Public License.
12 * See the file COPYING in the source tree root for full license agreement.
14 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
15 * KIND, either express or implied.
17 ****************************************************************************/
19 #ifndef BOOTLOADERINSTALLIPOD_H
20 #define BOOTLOADERINSTALLIPOD_H
22 #include <QtCore>
23 #include "bootloaderinstallbase.h"
24 #include "../ipodpatcher/ipodpatcher.h"
26 // installer class derivate for Ipod installation
27 // based on ipodpatcher.
28 class BootloaderInstallIpod : public BootloaderInstallBase
30 Q_OBJECT
32 public:
33 BootloaderInstallIpod(QObject *parent);
34 ~BootloaderInstallIpod();
35 bool install(void);
36 bool uninstall(void);
37 BootloaderInstallBase::BootloaderType installed(void);
38 Capabilities capabilities(void);
40 private slots:
41 void installStage2(void);
42 void installStage3(bool mounted);
44 private:
45 bool ipodInitialize(struct ipod_t *);
46 struct ipod_t ipod;
50 #endif