Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/Wasabi/bfc/file/filename.h
2024-09-24 14:54:57 +02:00

27 lines
700 B
C++

#ifndef _FILENAME_H
#define _FILENAME_H
#include <bfc/string/StringW.h>
#include <bfc/string/playstring.h>
#include <bfc/dispatch.h>
// a simple class to drag-and-drop filenames around
#define DD_FILENAME L"DD_Filename v1"
// another implementation that uses the central playstring table
class FilenamePS : private Playstring
{
public:
FilenamePS(const wchar_t *str) : Playstring(str) {}
const wchar_t *getFilename() { return getValue(); }
operator const wchar_t *() { return getFilename(); }
static const wchar_t *dragitem_getDatatype() { return DD_FILENAME; }
protected:
FilenamePS(const FilenamePS &fn) {}
FilenamePS& operator =(const FilenamePS &ps) { return *this; }
};
#endif