Use Unicode filenames on Windows.

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@734944 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Lukáš Lalinský
2007-11-10 15:16:49 +00:00
parent 5a495c5c11
commit b98be427f9
15 changed files with 208 additions and 1 deletions

View File

@ -119,6 +119,17 @@ FLAC::File::File(const char *file, ID3v2::FrameFactory *frameFactory,
read(readProperties, propertiesStyle);
}
#ifdef TAGLIB_UNICODE_FILENAMES
FLAC::File::File(const wchar_t *file, ID3v2::FrameFactory *frameFactory,
bool readProperties, Properties::ReadStyle propertiesStyle) :
TagLib::File(file)
{
d = new FilePrivate;
d->ID3v2FrameFactory = frameFactory;
read(readProperties, propertiesStyle);
}
#endif
FLAC::File::~File()
{
delete d;

View File

@ -88,6 +88,20 @@ namespace TagLib {
bool readProperties = true,
Properties::ReadStyle propertiesStyle = Properties::Average);
#ifdef TAGLIB_UNICODE_FILENAMES
/*!
* Contructs a FLAC file from \a file. If \a readProperties is true the
* file's audio properties will also be read using \a propertiesStyle. If
* false, \a propertiesStyle is ignored.
*
* If this file contains and ID3v2 tag the frames will be created using
* \a frameFactory.
*/
File(const wchar_t *file, ID3v2::FrameFactory *frameFactory,
bool readProperties = true,
Properties::ReadStyle propertiesStyle = Properties::Average);
#endif
/*!
* Destroys this instance of the File.
*/