Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Om3u Class Reference

#include </home/clem/local/src/opie/core/multimedia/opieplayer/om3u.h>

Inheritance diagram for Om3u:

Inheritance graph
[legend]
Collaboration diagram for Om3u:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Om3u (const QString &filePath, int mode)
 ~Om3u ()
void readM3u ()
void readPls ()
void write ()
void add (const QString &)
void remove (const QString &)
void deleteFile (const QString &)
void close ()
 Om3u (const QString &filePath, int mode)
 ~Om3u ()
void readM3u ()
void readPls ()
void write ()
void add (const QString &)
void remove (const QString &)
void deleteFile (const QString &)
void close ()

Private Attributes

QFile f

Constructor & Destructor Documentation

Om3u::Om3u const QString filePath,
int  mode
 

Definition at line 46 of file om3u.cpp.

References f, QFile::open(), and QFile::setName().

Om3u::~Om3u  ) 
 

Definition at line 53 of file om3u.cpp.

Om3u::Om3u const QString filePath,
int  mode
 

Om3u::~Om3u  ) 
 


Member Function Documentation

void Om3u::add const QString  ) 
 

void Om3u::add const QString  ) 
 

Definition at line 137 of file om3u.cpp.

References QValueList< QString >::append().

Referenced by PlaylistView::slotSaveAsM3u(), PlayListWidget::writeCurrentM3u(), PlayListWidget::writeDefaultPlaylist(), and PlayListWidget::writem3u().

void Om3u::close  ) 
 

void Om3u::close  ) 
 

Definition at line 161 of file om3u.cpp.

References QFile::close(), and f.

Referenced by PlayListWidget::readListFromFile(), PlayListWidget::readm3u(), PlayListWidget::readPls(), PlayListWidget::writeCurrentM3u(), PlayListWidget::writeDefaultPlaylist(), and PlayListWidget::writem3u().

void Om3u::deleteFile const QString  ) 
 

void Om3u::deleteFile const QString  ) 
 

Definition at line 155 of file om3u.cpp.

References QFile::close(), f, and QFile::remove().

void Om3u::readM3u  ) 
 

void Om3u::readM3u  ) 
 

Definition at line 55 of file om3u.cpp.

References QValueList< QString >::append(), QTextStream::atEnd(), f, QString::find(), QString::findRev(), fullBaseName(), QString::left(), QString::length(), name, QTextStream::readLine(), QString::replace(), QString::right(), s, QTextStream::setEncoding(), t, TRUE, and QTextStream::UnicodeUTF8.

Referenced by PlayListWidget::readListFromFile(), PlayListWidget::readm3u(), and PlaylistView::readPlayList().

void Om3u::readPls  ) 
 

void Om3u::readPls  ) 
 

Definition at line 87 of file om3u.cpp.

References QValueList< QString >::append(), QString::at(), QTextStream::atEnd(), f, QString::findRev(), fullBaseName(), QString::left(), QString::length(), name, QTextStream::readLine(), QString::replace(), QString::right(), s, QTextStream::setEncoding(), t, TRUE, and QTextStream::UnicodeUTF8.

Referenced by PlayListWidget::readListFromFile(), PlaylistView::readPlayList(), and PlayListWidget::readPls().

void Om3u::remove const QString  ) 
 

Reimplemented from QValueList< QString >.

void Om3u::remove const QString  ) 
 

Reimplemented from QValueList< QString >.

Definition at line 141 of file om3u.cpp.

References QValueList< QString >::begin(), QValueList< QString >::count(), QValueList< QString >::end(), f, QString::length(), list, and QFile::writeBlock().

void Om3u::write  ) 
 

void Om3u::write  ) 
 

Definition at line 124 of file om3u.cpp.

References QValueList< QString >::begin(), QValueList< QString >::count(), QValueList< QString >::end(), f, list, QTextStream::setEncoding(), t, and QTextStream::UnicodeUTF8.

Referenced by PlaylistView::slotSaveAsM3u(), PlayListWidget::writeCurrentM3u(), PlayListWidget::writeDefaultPlaylist(), and PlayListWidget::writem3u().


Member Data Documentation

QFile Om3u::f [private]
 

Definition at line 72 of file om3u.h.

Referenced by close(), deleteFile(), Om3u(), readM3u(), readPls(), remove(), and write().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:42:54 2005 for OPIE by  doxygen 1.4.2