Commit 83e5a246 authored by Bart van der Velden's avatar Bart van der Velden

- Updated some comments

- Deleted unnecessary Ant target (#53)
parent 6cd69b77
......@@ -89,27 +89,4 @@
<!-- set the output -->
</target>
<!--
ls is the target to show the contents of the directory
-->
<target name="ls">
<echo message="Running ls" />
<!-- what locale are we running? -->
<exec
executable="locale"
output="${logdir}/locale.log"
append="false">
</exec>
<!-- Run the ls command -->
<exec
executable="ls"
output="${logdir}/ls.log"
append="false">
<arg value=".." />
<arg value="-lasthR" />
</exec>
</target>
</project>
......@@ -28,23 +28,23 @@ namespace mc
// Forward declaration
class Track;
//! A Directory and its contents as scanned from the file system
//! A Directory and its contents as scanned from the file system.
class Directory
{
public:
//! Construct a directory
//! Construct a directory from its path.
Directory(const QString& path);
//! Add a track to the directory
//! Add a track to the directory.
void AddTrack(Track* track);
//! Give access to the tracks in this directory
//! Give access to the tracks in this directory.
const QList<Track*> Tracks() const;
private:
QString m_path;
QList<Track*> m_tracks;
private:
//! The default constructor is not implemented
//! The default constructor is not implemented.
Directory();
Q_DISABLE_COPY(Directory)
};
......
......@@ -27,13 +27,15 @@ namespace mc
// Forward declaration
class Directory;
//! A track as read from a file system
//! A track as read from a file system.
/*! This class is used to extract all possible data from an audio file.
*/
class Track
{
public:
//! Construct a Track.
/*! A Track is constructed from a path and a pointer to the Directory it is in.
*/
Track(const QString& path, const Directory* dir);
//! The absolute path to the file.
......@@ -42,7 +44,7 @@ namespace mc
*/
QString AbsolutePath() const;
//! The relative path at the point of scanning
//! The relative path at the point of scanning.
QString RelativePath() const;
private:
......@@ -51,7 +53,7 @@ namespace mc
const Directory* m_directory;
private:
//! The default constructor is not implemented
//! The default constructor is not implemented.
Track();
Q_DISABLE_COPY(Track)
};
......@@ -60,5 +62,3 @@ namespace mc
} // namespace ms
#endif // MUSICCOLLECTION_COLLECTION_TRACK_H_INCLUDED
......@@ -52,6 +52,9 @@ static const char* DefaultLogFile = "mc";
static const char* DefaultConfigFile = "musiccollection.cfg";
static const char* CopyrightNotice = "Copyright 2012-2014 Bart van der Velden";
//! Setup logging to the given logFile
/*!
*/
void InitLogging(const string& logFile)
{
boost::shared_ptr<sinks::synchronous_sink<sinks::text_file_backend > > sink = logging::add_file_log
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment