summary refs log tree commit diff stats
path: root/plugins/wmpa/wmpmediacollection.cpp
diff options
context:
space:
mode:
authorBerke Viktor <berkeviktor@aol.com>2011-08-12 01:39:40 +0200
committerBerke Viktor <berkeviktor@aol.com>2011-08-12 01:39:40 +0200
commit4338ddf9ec6a3662e852bcdbbfd3048e8d108a10 (patch)
tree834460baa3012cce64a4e998c6bf3d8d2865e0a9 /plugins/wmpa/wmpmediacollection.cpp
parent0709b95732214f48e191d591de9a652b0c9ddf82 (diff)
add wmpa 1.0.2 sources
Diffstat (limited to 'plugins/wmpa/wmpmediacollection.cpp')
-rw-r--r--plugins/wmpa/wmpmediacollection.cpp133
1 files changed, 133 insertions, 0 deletions
diff --git a/plugins/wmpa/wmpmediacollection.cpp b/plugins/wmpa/wmpmediacollection.cpp
new file mode 100644
index 00000000..d50da652
--- /dev/null
+++ b/plugins/wmpa/wmpmediacollection.cpp
@@ -0,0 +1,133 @@
+// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++

+

+// NOTE: Do not modify the contents of this file.  If this class is regenerated by

+//  Microsoft Visual C++, your modifications will be overwritten.

+

+

+#include "stdafx.h"

+#include "wmpmediacollection.h"

+

+// Dispatch interfaces referenced by this interface

+#include "wmpmedia.h"

+#include "wmpplaylist.h"

+#include "wmpstringcollection.h"

+

+

+/////////////////////////////////////////////////////////////////////////////

+// CWMPMediaCollection properties

+

+/////////////////////////////////////////////////////////////////////////////

+// CWMPMediaCollection operations

+

+CWMPMedia CWMPMediaCollection::add(LPCTSTR bstrURL)

+{

+	LPDISPATCH pDispatch;

+	static BYTE parms[] =

+		VTS_BSTR;

+	InvokeHelper(0x1c4, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,

+		bstrURL);

+	return CWMPMedia(pDispatch);

+}

+

+CWMPPlaylist CWMPMediaCollection::getAll()

+{

+	LPDISPATCH pDispatch;

+	InvokeHelper(0x1c5, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, NULL);

+	return CWMPPlaylist(pDispatch);

+}

+

+CWMPPlaylist CWMPMediaCollection::getByName(LPCTSTR bstrName)

+{

+	LPDISPATCH pDispatch;

+	static BYTE parms[] =

+		VTS_BSTR;

+	InvokeHelper(0x1c6, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,

+		bstrName);

+	return CWMPPlaylist(pDispatch);

+}

+

+CWMPPlaylist CWMPMediaCollection::getByGenre(LPCTSTR bstrGenre)

+{

+	LPDISPATCH pDispatch;

+	static BYTE parms[] =

+		VTS_BSTR;

+	InvokeHelper(0x1c7, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,

+		bstrGenre);

+	return CWMPPlaylist(pDispatch);

+}

+

+CWMPPlaylist CWMPMediaCollection::getByAuthor(LPCTSTR bstrAuthor)

+{

+	LPDISPATCH pDispatch;

+	static BYTE parms[] =

+		VTS_BSTR;

+	InvokeHelper(0x1c8, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,

+		bstrAuthor);

+	return CWMPPlaylist(pDispatch);

+}

+

+CWMPPlaylist CWMPMediaCollection::getByAlbum(LPCTSTR bstrAlbum)

+{

+	LPDISPATCH pDispatch;

+	static BYTE parms[] =

+		VTS_BSTR;

+	InvokeHelper(0x1c9, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,

+		bstrAlbum);

+	return CWMPPlaylist(pDispatch);

+}

+

+CWMPPlaylist CWMPMediaCollection::getByAttribute(LPCTSTR bstrAttribute, LPCTSTR bstrValue)

+{

+	LPDISPATCH pDispatch;

+	static BYTE parms[] =

+		VTS_BSTR VTS_BSTR;

+	InvokeHelper(0x1ca, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,

+		bstrAttribute, bstrValue);

+	return CWMPPlaylist(pDispatch);

+}

+

+void CWMPMediaCollection::remove(LPDISPATCH pItem, BOOL varfDeleteFile)

+{

+	static BYTE parms[] =

+		VTS_DISPATCH VTS_BOOL;

+	InvokeHelper(0x1cb, DISPATCH_METHOD, VT_EMPTY, NULL, parms,

+		 pItem, varfDeleteFile);

+}

+

+CWMPStringCollection CWMPMediaCollection::getAttributeStringCollection(LPCTSTR bstrAttribute, LPCTSTR bstrMediaType)

+{

+	LPDISPATCH pDispatch;

+	static BYTE parms[] =

+		VTS_BSTR VTS_BSTR;

+	InvokeHelper(0x1cd, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,

+		bstrAttribute, bstrMediaType);

+	return CWMPStringCollection(pDispatch);

+}

+

+long CWMPMediaCollection::getMediaAtom(LPCTSTR bstrItemName)

+{

+	long result;

+	static BYTE parms[] =

+		VTS_BSTR;

+	InvokeHelper(0x1d6, DISPATCH_METHOD, VT_I4, (void*)&result, parms,

+		bstrItemName);

+	return result;

+}

+

+void CWMPMediaCollection::setDeleted(LPDISPATCH pItem, BOOL varfIsDeleted)

+{

+	static BYTE parms[] =

+		VTS_DISPATCH VTS_BOOL;

+	InvokeHelper(0x1d7, DISPATCH_METHOD, VT_EMPTY, NULL, parms,

+		 pItem, varfIsDeleted);

+}

+

+BOOL CWMPMediaCollection::isDeleted(LPDISPATCH pItem)

+{

+	BOOL result;

+	static BYTE parms[] =

+		VTS_DISPATCH;

+	InvokeHelper(0x1d8, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,

+		pItem);

+	return result;

+}