0.7:
* ensure that package icons are scaled to proper size in the package details dialog
* minor UI tweaks
-- fetch dates for other repositories than maemo.org?
+* fix: show free space and size correctly for large filesystems
- support loading .install files
- support installing local .debs
- dbus interface for installing packages by name
later/any/uncertain:
+- fetch dates from other repositories than maemo.org?
- don't lose package selections when returning to main menu
(autostore/load selections - to different file than normal store)
- update install/remove changes directly to internal package db & don't require re-reading package lists afterwards
known bugs:
- possible to get stuck in portrait mode (wait for Qt autorotation fix)
-- no window menu indicator in stacked windows (probably Qt bug)
+- no window menu indicator in stacked windows (probably a Qt bug)
- updating menu icons after installation does not work or works only sometimes (currently disabled)
int numSelectedPackages() const { return iNumSelectedPackages; }
void setNumSelectedPackages(int p_) { iNumSelectedPackages=p_; }
- QHash<QString, Package*>* packagesAvailable() { return &iPackagesAvailable; }
- QHash<QString, Package*>* packagesInstalled() { return &iPackagesInstalled; }
+ const QHash<QString, Package*>* packagesAvailable() { return &iPackagesAvailable; }
+ const QHash<QString, Package*>* packagesInstalled() { return &iPackagesInstalled; }
QList<Repository*>* repositories() { return &iRepositories; }
+ // new api functions to support multiple packages with the same name
+ /*
+ QList<Package*> allLatestAvailablePackages();
+ QList<Package*> allAvailablePackagesNamed(QString name);
+ Package* findNewestAvailablePackage(QString name);
+ */
+
QByteArray readLogFile();
void readRepositoryInfo();
bool writeRepositories();
struct statfs opt_stat;
statfs("/",&root_stat);
statfs("/opt",&opt_stat);
- quint64 free_root = root_stat.f_bavail * root_stat.f_bsize / 1024;
- quint64 free_opt = opt_stat.f_bavail * opt_stat.f_bsize / 1024;
- quint64 total_root = root_stat.f_blocks * root_stat.f_bsize / 1024;
- quint64 total_opt = opt_stat.f_blocks * opt_stat.f_bsize / 1024;
+ quint64 free_root = static_cast<quint64>(root_stat.f_bavail) * static_cast<quint64>(root_stat.f_bsize) / 1024;
+ quint64 free_opt = static_cast<quint64>(opt_stat.f_bavail) * static_cast<quint64>(opt_stat.f_bsize) / 1024;
+ quint64 total_root = static_cast<quint64>(root_stat.f_blocks) * static_cast<quint64>(root_stat.f_bsize) / 1024;
+ quint64 total_opt = static_cast<quint64>(opt_stat.f_blocks) * static_cast<quint64>(opt_stat.f_bsize) / 1024;
qDebug() << "rootfs" << free_root << "/" << total_root << "kB free";
qDebug() << "opt fs" << free_opt << "/" << total_opt << "kB free";