importKradioripperSettings Class Reference

This class provides static functions to import the settings from KRadioRipper. More...

#include <importkradiorippersettings.h>

List of all members.

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 ()


Detailed Description

This class provides static functions to import the settings from KRadioRipper.

Warning:
Use these functions only after creating a KApplication object!

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.


Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void importKradioripperSettings::askForImport ( bool  use_dontAskAgainName = false  )  [static]

Asks the user if he wants to import KRadioRipper's settings.

Parameters:
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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

QString importKradioripperSettings::helper_stationlistXmlFilepath (  )  [inline, static, private]

Copied from stationlistModel::helper_stationlistXmlFilepath().

Returns:
The full path to the XML file that contains the station list.

Definition at line 71 of file importkradiorippersettings.cpp.

Referenced by importSettings().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files:

doxygen