Partially port away from KUrl.

This commit is contained in:
Andrius Štikonas 2014-05-17 03:34:51 +01:00
parent d1ae9dc4a7
commit 3f301f99aa
19 changed files with 21 additions and 20 deletions

View File

@ -87,7 +87,7 @@ namespace FS
FileSystem::SupportTool btrfs::supportToolName() const FileSystem::SupportTool btrfs::supportToolName() const
{ {
return SupportTool("btrfs-tools", KUrl("http://btrfs.wiki.kernel.org/")); return SupportTool("btrfs-tools", QUrl("http://btrfs.wiki.kernel.org/"));
} }
qint64 btrfs::minCapacity() const qint64 btrfs::minCapacity() const

View File

@ -81,7 +81,7 @@ namespace FS
FileSystem::SupportTool exfat::supportToolName() const FileSystem::SupportTool exfat::supportToolName() const
{ {
return SupportTool("exfat-utils", KUrl("http://code.google.com/p/exfat/")); return SupportTool("exfat-utils", QUrl("http://code.google.com/p/exfat/"));
} }
qint64 exfat::maxCapacity() const qint64 exfat::maxCapacity() const

View File

@ -80,7 +80,7 @@ namespace FS
FileSystem::SupportTool ext2::supportToolName() const FileSystem::SupportTool ext2::supportToolName() const
{ {
return SupportTool("e2fsprogs", KUrl("http://e2fsprogs.sf.net")); return SupportTool("e2fsprogs", QUrl("http://e2fsprogs.sf.net"));
} }
qint64 ext2::maxCapacity() const qint64 ext2::maxCapacity() const

View File

@ -86,7 +86,7 @@ namespace FS
FileSystem::SupportTool fat16::supportToolName() const FileSystem::SupportTool fat16::supportToolName() const
{ {
// also, dd for updating the UUID, but let's assume it's there ;-) // also, dd for updating the UUID, but let's assume it's there ;-)
return SupportTool("dosfstools", KUrl("http://www.daniel-baumann.ch/software/dosfstools/")); return SupportTool("dosfstools", QUrl("http://www.daniel-baumann.ch/software/dosfstools/"));
} }

View File

@ -27,6 +27,7 @@
#include <QStringList> #include <QStringList>
#include <QString> #include <QString>
#include <QList> #include <QList>
#include <QUrl>
class Device; class Device;
class Report; class Report;
@ -46,7 +47,7 @@ class FileSystem
class SupportTool class SupportTool
{ {
public: public:
explicit SupportTool(const QString& n = QString(), const KUrl& u = KUrl()) : name(n), url(u) {} explicit SupportTool(const QString& n = QString(), const QUrl& u = QUrl()) : name(n), url(u) {}
const QString name; const QString name;
const KUrl url; const KUrl url;

View File

@ -69,7 +69,7 @@ namespace FS
FileSystem::SupportTool hfs::supportToolName() const FileSystem::SupportTool hfs::supportToolName() const
{ {
return SupportTool("hfsutils", KUrl("http://www.mars.org/home/rob/proj/hfs/")); return SupportTool("hfsutils", QUrl("http://www.mars.org/home/rob/proj/hfs/"));
} }

View File

@ -65,7 +65,7 @@ namespace FS
FileSystem::SupportTool hfsplus::supportToolName() const FileSystem::SupportTool hfsplus::supportToolName() const
{ {
return SupportTool("hfsplus", KUrl()); return SupportTool("hfsplus", QUrl());
} }
qint64 hfsplus::maxCapacity() const qint64 hfsplus::maxCapacity() const

View File

@ -78,7 +78,7 @@ namespace FS
FileSystem::SupportTool jfs::supportToolName() const FileSystem::SupportTool jfs::supportToolName() const
{ {
return SupportTool("jfsutils", KUrl("http://jfs.sourceforge.net/")); return SupportTool("jfsutils", QUrl("http://jfs.sourceforge.net/"));
} }
qint64 jfs::minCapacity() const qint64 jfs::minCapacity() const

View File

@ -68,7 +68,7 @@ namespace FS
FileSystem::SupportTool linuxswap::supportToolName() const FileSystem::SupportTool linuxswap::supportToolName() const
{ {
return SupportTool("util-linux", KUrl("http://www.kernel.org/pub/linux/utils/util-linux-ng/")); return SupportTool("util-linux", QUrl("http://www.kernel.org/pub/linux/utils/util-linux-ng/"));
} }
qint64 linuxswap::maxLabelLength() const qint64 linuxswap::maxLabelLength() const

View File

@ -80,7 +80,7 @@ namespace FS
FileSystem::SupportTool luks::supportToolName() const FileSystem::SupportTool luks::supportToolName() const
{ {
return SupportTool("cryptsetup", KUrl("https://code.google.com/p/cryptsetup/")); return SupportTool("cryptsetup", QUrl("https://code.google.com/p/cryptsetup/"));
} }
qint64 luks::minCapacity() const qint64 luks::minCapacity() const

View File

@ -79,7 +79,7 @@ namespace FS
FileSystem::SupportTool lvm2_pv::supportToolName() const FileSystem::SupportTool lvm2_pv::supportToolName() const
{ {
return SupportTool("lvm2", KUrl("http://sourceware.org/lvm2/")); return SupportTool("lvm2", QUrl("http://sourceware.org/lvm2/"));
} }
qint64 lvm2_pv::maxCapacity() const qint64 lvm2_pv::maxCapacity() const

View File

@ -90,7 +90,7 @@ namespace FS
FileSystem::SupportTool nilfs2::supportToolName() const FileSystem::SupportTool nilfs2::supportToolName() const
{ {
return SupportTool("nilfs2-utils", KUrl("http://code.google.com/p/nilfs2/")); return SupportTool("nilfs2-utils", QUrl("http://code.google.com/p/nilfs2/"));
} }
qint64 nilfs2::minCapacity() const qint64 nilfs2::minCapacity() const

View File

@ -86,7 +86,7 @@ namespace FS
FileSystem::SupportTool ntfs::supportToolName() const FileSystem::SupportTool ntfs::supportToolName() const
{ {
return SupportTool("ntfsprogs", KUrl("http://www.linux-ntfs.org/doku.php?id=ntfsprogs")); return SupportTool("ntfsprogs", QUrl("http://www.linux-ntfs.org/doku.php?id=ntfsprogs"));
} }
qint64 ntfs::minCapacity() const qint64 ntfs::minCapacity() const

View File

@ -85,7 +85,7 @@ namespace FS
FileSystem::SupportTool ocfs2::supportToolName() const FileSystem::SupportTool ocfs2::supportToolName() const
{ {
return SupportTool("ocfs2-tools", KUrl("http://oss.oracle.com/projects/ocfs2-tools/")); return SupportTool("ocfs2-tools", QUrl("http://oss.oracle.com/projects/ocfs2-tools/"));
} }
qint64 ocfs2::minCapacity() const qint64 ocfs2::minCapacity() const

View File

@ -69,7 +69,7 @@ namespace FS
FileSystem::SupportTool reiser4::supportToolName() const FileSystem::SupportTool reiser4::supportToolName() const
{ {
return SupportTool("reiser4progs", KUrl("http://www.kernel.org/pub/linux/utils/fs/reiser4/reiser4progs/")); return SupportTool("reiser4progs", QUrl("http://www.kernel.org/pub/linux/utils/fs/reiser4/reiser4progs/"));
} }
qint64 reiser4::maxCapacity() const qint64 reiser4::maxCapacity() const
@ -78,7 +78,7 @@ namespace FS
// http://en.wikipedia.org/wiki/Comparison_of_file_systems // http://en.wikipedia.org/wiki/Comparison_of_file_systems
return Capacity::unitFactor(Capacity::Byte, Capacity::EiB); return Capacity::unitFactor(Capacity::Byte, Capacity::EiB);
} }
qint64 reiser4::maxLabelLength() const qint64 reiser4::maxLabelLength() const
{ {
return 16; return 16;

View File

@ -81,7 +81,7 @@ namespace FS
FileSystem::SupportTool reiserfs::supportToolName() const FileSystem::SupportTool reiserfs::supportToolName() const
{ {
return SupportTool("reiserfsprogs", KUrl("http://www.kernel.org/pub/linux/utils/fs/reiserfs/")); return SupportTool("reiserfsprogs", QUrl("http://www.kernel.org/pub/linux/utils/fs/reiserfs/"));
} }
qint64 reiserfs::minCapacity() const qint64 reiserfs::minCapacity() const

View File

@ -81,7 +81,7 @@ namespace FS
FileSystem::SupportTool xfs::supportToolName() const FileSystem::SupportTool xfs::supportToolName() const
{ {
return SupportTool("xfsprogs", KUrl("http://oss.sgi.com/projects/xfs/")); return SupportTool("xfsprogs", QUrl("http://oss.sgi.com/projects/xfs/"));
} }
qint64 xfs::minCapacity() const qint64 xfs::minCapacity() const

View File

@ -73,7 +73,7 @@ namespace FS
FileSystem::SupportTool zfs::supportToolName() const FileSystem::SupportTool zfs::supportToolName() const
{ {
return SupportTool("zfs", KUrl("http://zfsonlinux.org/")); return SupportTool("zfs", QUrl("http://zfsonlinux.org/"));
} }
qint64 zfs::minCapacity() const qint64 zfs::minCapacity() const

View File

@ -54,7 +54,7 @@ int main(int argc, char* argv[])
if (!checkAccessibleDevices()) if (!checkAccessibleDevices())
return 0; return 0;
MainWindow* mainWindow = new MainWindow(); MainWindow* mainWindow = new MainWindow();
mainWindow->show(); mainWindow->show();