#include <importkradiorippersettings.h>
Static Public Member Functions | |
static void | askForImport (bool use_dontAskAgainName=false) |
static void | importSettingsIfDesired () |
Static Private Member Functions | |
static QString | allocateStreamFile () |
static QString | helper_locateConfigfile (const QString &configfileName) |
static QString | helper_stationlistXmlFilepath () |
static void | importSettings () |
It changes settings_general and the streamlist XML file. While the changes in settings_general are available immediately, the streamlist seems to be not reloaded. So you must call this function before creating MainWindow.
Definition at line 33 of file importkradiorippersettings.h.
QString importKradioripperSettings::allocateStreamFile | ( | ) | [static, private] |
Creates an empty stream config file and returns its name. The code is mostly copied from radioStation::helper_setupConfigSystem().
Definition at line 46 of file importkradiorippersettings.cpp.
References helper_locateConfigfile().
Referenced by importSettings().
void importKradioripperSettings::askForImport | ( | bool | use_dontAskAgainName = false |
) | [static] |
Asks the user if he wants to import KRadioRipper's settings.
use_dontAskAgainName | Make use of the dontAskAgainName system of KMessageDialog. |
Definition at line 129 of file importkradiorippersettings.cpp.
Referenced by MainWindow::askForKradioripperImport(), and MainWindow::MainWindow().
QString importKradioripperSettings::helper_locateConfigfile | ( | const QString & | configfileName | ) | [static, private] |
The code is just copied from radioStation::helper_locateConfigfile().
Definition at line 66 of file importkradiorippersettings.cpp.
Referenced by allocateStreamFile().
QString importKradioripperSettings::helper_stationlistXmlFilepath | ( | ) | [inline, static, private] |
Copied from stationlistModel::helper_stationlistXmlFilepath().
Definition at line 71 of file importkradiorippersettings.cpp.
Referenced by importSettings().
void importKradioripperSettings::importSettings | ( | ) | [static, private] |
Imports KRadioRipper's settings.
Definition at line 76 of file importkradiorippersettings.cpp.
References allocateStreamFile(), and helper_stationlistXmlFilepath().
Referenced by importSettingsIfDesired().
void importKradioripperSettings::importSettingsIfDesired | ( | ) | [static] |
Imports the settings of KRadioRipper if this had been requested by the user previously.
Definition at line 36 of file importkradiorippersettings.cpp.
References importSettings().
Referenced by main().