]> git.sesse.net Git - vlc/blob - activex/persiststreaminit.cpp
421036f24c0e5c48bbab543af231893b0096ef23
[vlc] / activex / persiststreaminit.cpp
1 /*****************************************************************************\r
2  * persiststreaminit.cpp: ActiveX control for VLC\r
3  *****************************************************************************\r
4  * Copyright (C) 2005 VideoLAN\r
5  *\r
6  * Authors: Damien Fouilleul <Damien.Fouilleul@laposte.net>\r
7  *\r
8  * This program is free software; you can redistribute it and/or modify\r
9  * it under the terms of the GNU General Public License as published by\r
10  * the Free Software Foundation; either version 2 of the License, or\r
11  * (at your option) any later version.\r
12  *\r
13  * This program is distributed in the hope that it will be useful,\r
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
16  * GNU General Public License for more details.\r
17  *\r
18  * You should have received a copy of the GNU General Public License\r
19  * along with this program; if not, write to the Free Software\r
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.\r
21  *****************************************************************************/\r
22 \r
23 #include "plugin.h"\r
24 #include "persiststreaminit.h"\r
25 \r
26 using namespace std;\r
27 \r
28 STDMETHODIMP VLCPersistStreamInit::GetClassID(LPCLSID pClsID)\r
29 {\r
30     if( NULL == pClsID )\r
31         return E_POINTER;\r
32 \r
33     *pClsID = _p_instance->getClassID();\r
34 \r
35     return S_OK;\r
36 };\r
37 \r
38 STDMETHODIMP VLCPersistStreamInit::InitNew(void)\r
39 {\r
40     return _p_instance->onInitNew();\r
41 };\r
42 \r
43 STDMETHODIMP VLCPersistStreamInit::Load(LPSTREAM pStm)\r
44 {\r
45     if( NULL == pStm )\r
46         return E_POINTER;\r
47 \r
48     return _p_instance->onInitNew();\r
49 };\r
50 \r
51 STDMETHODIMP VLCPersistStreamInit::Save(LPSTREAM pStm, BOOL fClearDirty)\r
52 {\r
53     if( NULL == pStm )\r
54         return E_POINTER;\r
55 \r
56     return S_OK;\r
57 };\r
58 \r
59 STDMETHODIMP VLCPersistStreamInit::IsDirty(void)\r
60 {\r
61     return S_FALSE;\r
62 };\r
63 \r
64 STDMETHODIMP VLCPersistStreamInit::GetSizeMax(ULARGE_INTEGER *pcbSize)\r
65 {\r
66     pcbSize->QuadPart = 0ULL;\r
67 \r
68     return S_OK;\r
69 };\r
70 \r