StorageGroup Class Reference

#include <storagegroup.h>

Inheritance diagram for StorageGroup:

ConfigurationWizard ConfigurationDialog Storage

List of all members.


Detailed Description

Definition at line 10 of file storagegroup.h.


Public Member Functions

 StorageGroup (const QString group="", const QString hostname="")
 StorageGroup constructor.
void Init (const QString group="Default", const QString hostname="")
QString getName (void) const
QStringList GetDirList (void) const
QString FindRecordingFile (QString filename)
QString FindRecordingDir (QString filename)
QString FindNextDirMostFree (void)

Static Public Member Functions

static void CheckAllStorageGroupDirs (void)
static QStringList getRecordingsGroups (void)

Static Public Attributes

static const char * kDefaultStorageDir = "/mnt/store"
static const QStringList kSpecialGroups

Private Attributes

QString m_groupname
QString m_hostname
QStringList m_dirlist

Constructor & Destructor Documentation

StorageGroup::StorageGroup ( const QString  group = "",
const QString  hostname = "" 
)

StorageGroup constructor.

Parameters:
group storage group to search, blank will search all groups.
hostname hostname where to search, blank will search all hosts' directories, but only in local directory structure. This is parameter is ignored if group is an empty string.

Definition at line 30 of file storagegroup.cpp.


Member Function Documentation

void StorageGroup::Init ( const QString  group = "Default",
const QString  hostname = "" 
)

Definition at line 39 of file storagegroup.cpp.

Referenced by StorageGroup().

QString StorageGroup::getName ( void   )  const [inline]

Definition at line 18 of file storagegroup.h.

QStringList StorageGroup::GetDirList ( void   )  const [inline]

Definition at line 21 of file storagegroup.h.

Referenced by Scheduler::FillRecordingDir().

QString StorageGroup::FindRecordingFile ( QString  filename  ) 

QString StorageGroup::FindRecordingDir ( QString  filename  ) 

Definition at line 142 of file storagegroup.cpp.

Referenced by FindRecordingDir(), and FindRecordingFile().

QString StorageGroup::FindNextDirMostFree ( void   ) 

Definition at line 187 of file storagegroup.cpp.

void StorageGroup::CheckAllStorageGroupDirs ( void   )  [static]

Definition at line 235 of file storagegroup.cpp.

Referenced by main().

QStringList StorageGroup::getRecordingsGroups ( void   )  [static]

Definition at line 292 of file storagegroup.cpp.

Referenced by SRStorageGroup::fillSelections().


Member Data Documentation

const char * StorageGroup::kDefaultStorageDir = "/mnt/store" [static]

Definition at line 31 of file storagegroup.h.

Referenced by FindNextDirMostFree(), and Init().

const QStringList StorageGroup::kSpecialGroups [static]

Initial value:

 QStringList()
    << "LiveTV"

    << "DB Backups"

Definition at line 32 of file storagegroup.h.

Referenced by StorageGroupListEditor::doDelete(), getRecordingsGroups(), StorageGroupListEditor::load(), and StorageGroupEditor::StorageGroupEditor().

QString StorageGroup::m_groupname [private]

Definition at line 37 of file storagegroup.h.

Referenced by CheckAllStorageGroupDirs(), FindRecordingDir(), Init(), and StorageGroup().

QString StorageGroup::m_hostname [private]

Definition at line 38 of file storagegroup.h.

Referenced by Init(), and StorageGroup().

QStringList StorageGroup::m_dirlist [private]

Definition at line 39 of file storagegroup.h.

Referenced by FindNextDirMostFree(), FindRecordingDir(), Init(), and StorageGroup().


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

Generated on Sat Dec 18 05:16:11 2010 for MythTV by  doxygen 1.5.5