From 68376661758627c300aa54eee7573953134b2143 Mon Sep 17 00:00:00 2001 From: zecke Date: Sat, 10 Jan 2004 15:12:11 +0000 Subject: -First follow Qt naming style -use const -Fix Doxygen comment. If above a method better skip the @fn -Update backuprestore to use the new names TODO: Alter filename to ostorageinfo --- diff --git a/libopie2/opiecore/ostorageinfo.cpp b/libopie2/opiecore/ostorageinfo.cpp index cf9dc6c..6712282 100644 --- a/libopie2/opiecore/ostorageinfo.cpp +++ b/libopie2/opiecore/ostorageinfo.cpp @@ -38,7 +38,7 @@ OStorageInfo::~OStorageInfo() { } -QString OStorageInfo::getCfPath() +QString OStorageInfo::cfPath()const { QString r = ""; @@ -54,11 +54,10 @@ QString OStorageInfo::getCfPath() } /*! -* @fn QString StorageInfo::getSdPath() * @brief returns the Mount-Path of Sd Card * */ -QString OStorageInfo::getSdPath() +QString OStorageInfo::sdPath()const { QString r = ""; @@ -74,11 +73,10 @@ QString OStorageInfo::getSdPath() } /*! -* @fn QString StorageInfo::getMmcPath() * @brief returns the Mount-Path of Mmc Card * */ -QString OStorageInfo::getMmcPath() +QString OStorageInfo::mmcPath()const { QString r = ""; diff --git a/libopie2/opiecore/ostorageinfo.h b/libopie2/opiecore/ostorageinfo.h index ba87ff4..9b61a2e 100644 --- a/libopie2/opiecore/ostorageinfo.h +++ b/libopie2/opiecore/ostorageinfo.h @@ -41,9 +41,9 @@ public: OStorageInfo( QObject *parent=0 ); ~OStorageInfo(); - QString getCfPath(); - QString getSdPath(); - QString getMmcPath(); + QString cfPath()const; + QString sdPath()const; + QString mmcPath()const; }; #endif // OSTORAGE_H diff --git a/noncore/settings/backup/backuprestore.cpp b/noncore/settings/backup/backuprestore.cpp index eb69a70..2d79384 100644 --- a/noncore/settings/backup/backuprestore.cpp +++ b/noncore/settings/backup/backuprestore.cpp @@ -70,18 +70,18 @@ BackupAndRestore::BackupAndRestore( QWidget* parent, const char* name, WFlags f backupLocations.insert( "Documents", QDir::homeDirPath() + "/Documents" ); if ( storage.hasCf() ) { - backupLocations.insert( "CF", storage.getCfPath() ); - qDebug( "Cf Path: " + storage.getCfPath() ); + backupLocations.insert( "CF", storage.cfPath() ); + qDebug( "Cf Path: " + storage.cfPath() ); } if ( storage.hasSd() ) { - backupLocations.insert( "SD", storage.getSdPath() ); - qDebug( " Sd Path: " + storage.getSdPath() ); + backupLocations.insert( "SD", storage.sdPath() ); + qDebug( " Sd Path: " + storage.sdPath() ); } if ( storage.hasMmc() ) { - backupLocations.insert( "MMC", storage.getMmcPath() ); - qDebug( "Mmc Path: " + storage.getMmcPath() ); + backupLocations.insert( "MMC", storage.mmcPath() ); + qDebug( "Mmc Path: " + storage.mmcPath() ); } Config config("BackupAndRestore"); -- cgit v0.9.0.2