Getter and Setter for the config file name.

This commit is contained in:
Klaas Freitag 2012-11-22 12:29:50 +01:00
parent 9e3d22af2d
commit ee9e814f41
2 changed files with 17 additions and 0 deletions

View file

@ -319,6 +319,16 @@ void Folder::slotLocalPathChanged( const QString& dir )
} }
} }
void Folder::setConfigFile( const QString& file )
{
_configFile = file;
}
QString Folder::configFile()
{
return _configFile;
}
void Folder::setBackend( const QString& b ) void Folder::setBackend( const QString& b )
{ {
_backend = b; _backend = b;

View file

@ -137,6 +137,12 @@ public:
*/ */
QString backend() const; QString backend() const;
/**
* set the config file name.
*/
void setConfigFile( const QString& );
QString configFile();
/** /**
* This is called if the sync folder definition is removed. Do cleanups here. * This is called if the sync folder definition is removed. Do cleanups here.
*/ */
@ -199,6 +205,7 @@ private:
QString _alias; QString _alias;
bool _onlyOnlineEnabled; bool _onlyOnlineEnabled;
bool _onlyThisLANEnabled; bool _onlyThisLANEnabled;
QString _configFile;
QFileSystemWatcher *_pathWatcher; QFileSystemWatcher *_pathWatcher;