mirror of
https://github.com/taglib/taglib.git
synced 2026-02-05 15:00:14 -05:00
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:
@ -246,6 +246,19 @@ MPEG::File::File(const char *file, ID3v2::FrameFactory *frameFactory,
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef TAGLIB_UNICODE_FILENAMES
|
||||
MPEG::File::File(const wchar_t *file, ID3v2::FrameFactory *frameFactory,
|
||||
bool readProperties, Properties::ReadStyle propertiesStyle) :
|
||||
TagLib::File(file)
|
||||
{
|
||||
d = new FilePrivate(frameFactory);
|
||||
if(isOpen()) {
|
||||
d->tag = new MPEGTag(this);
|
||||
read(readProperties, propertiesStyle);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
MPEG::File::~File()
|
||||
{
|
||||
delete d;
|
||||
|
||||
@ -91,6 +91,18 @@ namespace TagLib {
|
||||
bool readProperties = true,
|
||||
Properties::ReadStyle propertiesStyle = Properties::Average);
|
||||
|
||||
#ifdef TAGLIB_UNICODE_FILENAMES
|
||||
/*!
|
||||
* Contructs an MPEG 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. 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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user