Diffstat (limited to 'kabc/plugins/olaccess/resourceolaccessconfig.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kabc/plugins/olaccess/resourceolaccessconfig.cpp | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/kabc/plugins/olaccess/resourceolaccessconfig.cpp b/kabc/plugins/olaccess/resourceolaccessconfig.cpp index 240f1d7..1fcf1b8 100644 --- a/kabc/plugins/olaccess/resourceolaccessconfig.cpp +++ b/kabc/plugins/olaccess/resourceolaccessconfig.cpp @@ -32,21 +32,19 @@ $Id$ #include <klocale.h> #include <kstandarddirs.h> #include <kdialog.h> -#include <unistd.h> #include <qdir.h> #include <qfile.h> -#include "resourcesharpdtm.h" +#include "resourceolaccess.h" -#include "resourcesharpdtmconfig.h" +#include "resourceolaccessconfig.h" -#include <sl/slzdb.h> using namespace KABC; -ResourceSharpDTMConfig::ResourceSharpDTMConfig( QWidget* parent, const char* name ) +ResourceolaccessConfig::ResourceolaccessConfig( QWidget* parent, const char* name ) : ConfigWidget( parent, name ) { QGridLayout *mainLayout = new QGridLayout( this, 1, 2, 0, KDialog::spacingHint() ); @@ -61,21 +59,21 @@ ResourceSharpDTMConfig::ResourceSharpDTMConfig( QWidget* parent, const char* na mainLayout->addWidget( mFileNameEdit, 0, 1 ); } -void ResourceSharpDTMConfig::loadSettings( KRES::Resource *res ) +void ResourceolaccessConfig::loadSettings( KRES::Resource *res ) { //US ResourceFile *resource = dynamic_cast<ResourceFile*>( res ); - ResourceSharpDTM *resource = (ResourceSharpDTM*)( res ); + Resourceolaccess *resource = (Resourceolaccess*)( res ); if ( !resource ) { - kdDebug(5700) << "ResourceSharpDTMConfig::loadSettings(): cast failed" << endl; + kdDebug(5700) << "ResourceolaccessConfig::loadSettings(): cast failed" << endl; return; } mFileNameEdit->setURL( resource->fileName() ); if ( mFileNameEdit->url().isEmpty() ) - mFileNameEdit->setURL( SlZDataBase::addressbookFileName() ); + ;//mFileNameEdit->setURL( SlZDataBase::addressbookFileName() ); //US Sharp DTM resources are ReadOnly by definition emit setPersistentReadOnly( true ); @@ -83,22 +81,22 @@ void ResourceSharpDTMConfig::loadSettings( KRES::Resource *res ) mFileNameEdit->setEnabled( false ); } -void ResourceSharpDTMConfig::saveSettings( KRES::Resource *res ) +void ResourceolaccessConfig::saveSettings( KRES::Resource *res ) { //US ResourceFile *resource = dynamic_cast<ResourceFile*>( res ); - ResourceSharpDTM *resource = (ResourceSharpDTM*)( res ); + Resourceolaccess *resource = (Resourceolaccess*)( res ); if ( !resource ) { - kdDebug(5700) << "ResourceSharpDTMConfig::saveSettings(): cast failed" << endl; + kdDebug(5700) << "ResourceolaccessConfig::saveSettings(): cast failed" << endl; return; } resource->setFileName( mFileNameEdit->url() ); } -void ResourceSharpDTMConfig::checkFilePermissions( const QString& fileName ) +void ResourceolaccessConfig::checkFilePermissions( const QString& fileName ) { // If file exist but is not writeable... /*US if ( access( QFile::encodeName( fileName ), F_OK ) == 0 ) |