plugins/multimedia/wmp/qmfactivate.cpp
changeset 0 876b1a06bc25
equal deleted inserted replaced
-1:000000000000 0:876b1a06bc25
       
     1 /****************************************************************************
       
     2 **
       
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     4 ** All rights reserved.
       
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
       
     6 **
       
     7 ** This file is part of the Qt Mobility Components.
       
     8 **
       
     9 ** $QT_BEGIN_LICENSE:LGPL$
       
    10 ** No Commercial Usage
       
    11 ** This file contains pre-release code and may not be distributed.
       
    12 ** You may use this file in accordance with the terms and conditions
       
    13 ** contained in the Technology Preview License Agreement accompanying
       
    14 ** this package.
       
    15 **
       
    16 ** GNU Lesser General Public License Usage
       
    17 ** Alternatively, this file may be used under the terms of the GNU Lesser
       
    18 ** General Public License version 2.1 as published by the Free Software
       
    19 ** Foundation and appearing in the file LICENSE.LGPL included in the
       
    20 ** packaging of this file.  Please review the following information to
       
    21 ** ensure the GNU Lesser General Public License version 2.1 requirements
       
    22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
       
    23 **
       
    24 ** In addition, as a special exception, Nokia gives you certain additional
       
    25 ** rights.  These rights are described in the Nokia Qt LGPL Exception
       
    26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
       
    27 **
       
    28 ** If you have questions regarding the use of this file, please contact
       
    29 ** Nokia at qt-info@nokia.com.
       
    30 **
       
    31 **
       
    32 **
       
    33 **
       
    34 **
       
    35 **
       
    36 **
       
    37 **
       
    38 ** $QT_END_LICENSE$
       
    39 **
       
    40 ****************************************************************************/
       
    41 
       
    42 #include "qmfactivate.h"
       
    43 
       
    44 #include <QtCore/qglobal.h>
       
    45 
       
    46 #include <Mferror.h>
       
    47 
       
    48 
       
    49 // IMFAttributes
       
    50 
       
    51 HRESULT QMFActivate::GetItem(REFGUID guidKey, PROPVARIANT *pValue)
       
    52 {
       
    53     Q_UNUSED(guidKey);
       
    54     Q_UNUSED(pValue);
       
    55 
       
    56     return MF_E_ATTRIBUTENOTFOUND;
       
    57 }
       
    58 
       
    59 HRESULT QMFActivate::GetItemType(REFGUID guidKey, MF_ATTRIBUTE_TYPE *pType)
       
    60 {
       
    61     Q_UNUSED(guidKey);
       
    62     Q_UNUSED(pType);
       
    63 
       
    64     return MF_E_ATTRIBUTENOTFOUND;
       
    65 }
       
    66 
       
    67 HRESULT QMFActivate::CompareItem(REFGUID guidKey, REFPROPVARIANT Value, BOOL *pbResult)
       
    68 {
       
    69     Q_UNUSED(guidKey);
       
    70     Q_UNUSED(Value);
       
    71     Q_UNUSED(pbResult);
       
    72 
       
    73     return E_NOTIMPL;
       
    74 }
       
    75 
       
    76 HRESULT QMFActivate::Compare(IMFAttributes *pTheirs, MF_ATTRIBUTES_MATCH_TYPE MatchType, BOOL *pbResult)
       
    77 {
       
    78     Q_UNUSED(pTheirs);
       
    79     Q_UNUSED(MatchType);
       
    80     Q_UNUSED(pbResult);
       
    81 
       
    82     return E_NOTIMPL;
       
    83 }
       
    84 
       
    85 HRESULT QMFActivate::GetUINT32(REFGUID guidKey, UINT32 *punValue)
       
    86 {
       
    87     Q_UNUSED(guidKey);
       
    88     Q_UNUSED(punValue);
       
    89 
       
    90     return MF_E_ATTRIBUTENOTFOUND;
       
    91 }
       
    92 
       
    93 HRESULT QMFActivate::GetUINT64(REFGUID guidKey, UINT64 *punValue)
       
    94 {
       
    95     Q_UNUSED(guidKey);
       
    96     Q_UNUSED(punValue);
       
    97 
       
    98     return MF_E_ATTRIBUTENOTFOUND;
       
    99 }
       
   100 
       
   101 HRESULT QMFActivate::GetDouble(REFGUID guidKey, double *pfValue)
       
   102 {
       
   103     Q_UNUSED(guidKey);
       
   104     Q_UNUSED(pfValue);
       
   105 
       
   106     return MF_E_ATTRIBUTENOTFOUND;
       
   107 }
       
   108 
       
   109 HRESULT QMFActivate::GetGUID(REFGUID guidKey, GUID *pguidValue)
       
   110 {
       
   111     Q_UNUSED(guidKey);
       
   112     Q_UNUSED(pguidValue);
       
   113 
       
   114     return MF_E_ATTRIBUTENOTFOUND;
       
   115 }
       
   116 
       
   117 HRESULT QMFActivate::GetStringLength(REFGUID guidKey, UINT32 *pcchLength)
       
   118 {
       
   119     Q_UNUSED(guidKey);
       
   120     Q_UNUSED(pcchLength);
       
   121 
       
   122     return MF_E_ATTRIBUTENOTFOUND; 
       
   123 }
       
   124 
       
   125 HRESULT QMFActivate::GetString(REFGUID guidKey, LPWSTR pwszValue, UINT32 cchBufSize, UINT32 *pcchLength)
       
   126 {
       
   127     Q_UNUSED(guidKey);
       
   128     Q_UNUSED(pwszValue);
       
   129     Q_UNUSED(cchBufSize);
       
   130     Q_UNUSED(pcchLength);
       
   131 
       
   132     return MF_E_ATTRIBUTENOTFOUND; 
       
   133 }
       
   134 
       
   135 HRESULT QMFActivate::GetAllocatedString(REFGUID guidKey, LPWSTR *ppwszValue, UINT32 *pcchLength)
       
   136 {
       
   137     Q_UNUSED(guidKey);
       
   138     Q_UNUSED(ppwszValue);
       
   139     Q_UNUSED(pcchLength);
       
   140 
       
   141     return MF_E_ATTRIBUTENOTFOUND; 
       
   142 }
       
   143 
       
   144 HRESULT QMFActivate::GetBlobSize(REFGUID guidKey, UINT32 *pcbBlobSize)
       
   145 {
       
   146     Q_UNUSED(guidKey);
       
   147     Q_UNUSED(pcbBlobSize);
       
   148 
       
   149     return MF_E_ATTRIBUTENOTFOUND; 
       
   150 }
       
   151 
       
   152 HRESULT QMFActivate::GetBlob(REFGUID guidKey, UINT8 *pBuf, UINT32 cbBufSize, UINT32 *pcbBlobSize)
       
   153 {
       
   154     Q_UNUSED(guidKey);
       
   155     Q_UNUSED(pBuf);
       
   156     Q_UNUSED(cbBufSize);
       
   157     Q_UNUSED(pcbBlobSize);
       
   158 
       
   159     return MF_E_ATTRIBUTENOTFOUND; 
       
   160 }
       
   161 
       
   162 HRESULT QMFActivate::GetAllocatedBlob(REFGUID guidKey, UINT8 **ppBuf, UINT32 *pcbSize)
       
   163 {
       
   164     Q_UNUSED(guidKey);
       
   165     Q_UNUSED(ppBuf);
       
   166     Q_UNUSED(pcbSize);
       
   167 
       
   168     return MF_E_ATTRIBUTENOTFOUND; 
       
   169 }
       
   170 
       
   171 HRESULT QMFActivate::GetUnknown(REFGUID guidKey, REFIID riid, LPVOID *ppv)
       
   172 {
       
   173     Q_UNUSED(guidKey);
       
   174     Q_UNUSED(riid);
       
   175     Q_UNUSED(ppv);
       
   176 
       
   177     return MF_E_ATTRIBUTENOTFOUND; 
       
   178 }
       
   179 
       
   180 HRESULT QMFActivate::SetItem(REFGUID guidKey, REFPROPVARIANT Value)
       
   181 {
       
   182     Q_UNUSED(guidKey);
       
   183     Q_UNUSED(Value);
       
   184 
       
   185     return E_NOTIMPL;
       
   186 }
       
   187 
       
   188 HRESULT QMFActivate::DeleteItem(REFGUID guidKey)
       
   189 {
       
   190     Q_UNUSED(guidKey);
       
   191 
       
   192     return E_NOTIMPL; 
       
   193 }
       
   194 
       
   195 HRESULT QMFActivate::DeleteAllItems()
       
   196 {
       
   197     return E_NOTIMPL; 
       
   198 }
       
   199 
       
   200 HRESULT QMFActivate::SetUINT32(REFGUID guidKey, UINT32 unValue)
       
   201 {
       
   202     Q_UNUSED(guidKey);
       
   203     Q_UNUSED(unValue);
       
   204 
       
   205     return E_NOTIMPL;
       
   206 }
       
   207 
       
   208 HRESULT QMFActivate::SetUINT64(REFGUID guidKey, UINT64 unValue)
       
   209 {
       
   210     Q_UNUSED(guidKey);
       
   211     Q_UNUSED(unValue);
       
   212 
       
   213     return E_NOTIMPL; 
       
   214 }
       
   215 
       
   216 HRESULT QMFActivate::SetDouble(REFGUID guidKey, double fValue)
       
   217 {
       
   218     Q_UNUSED(guidKey);
       
   219     Q_UNUSED(fValue);
       
   220 
       
   221     return E_NOTIMPL; 
       
   222 }
       
   223 
       
   224 HRESULT QMFActivate::SetGUID(REFGUID guidKey, REFGUID guidValue)
       
   225 {
       
   226     Q_UNUSED(guidKey);
       
   227     Q_UNUSED(guidValue);
       
   228 
       
   229     return E_NOTIMPL; 
       
   230 }
       
   231 
       
   232 HRESULT QMFActivate::SetString(REFGUID guidKey, LPCWSTR wszValue)
       
   233 {
       
   234     Q_UNUSED(guidKey);
       
   235     Q_UNUSED(wszValue);
       
   236 
       
   237     return E_NOTIMPL; 
       
   238 }
       
   239 
       
   240 HRESULT QMFActivate::SetBlob(REFGUID guidKey, const UINT8 *pBuf, UINT32 cbBufSize)
       
   241 {
       
   242     Q_UNUSED(guidKey);
       
   243     Q_UNUSED(pBuf);
       
   244     Q_UNUSED(cbBufSize);
       
   245 
       
   246     return E_NOTIMPL; 
       
   247 }
       
   248 
       
   249 HRESULT QMFActivate::SetUnknown(REFGUID guidKey, IUnknown *pUnknown)
       
   250 {
       
   251     Q_UNUSED(guidKey);
       
   252     Q_UNUSED(pUnknown);
       
   253 
       
   254     return E_NOTIMPL; 
       
   255 }
       
   256 
       
   257 HRESULT QMFActivate::LockStore()
       
   258 {
       
   259     m_mutex.lock();
       
   260 
       
   261     return S_OK;
       
   262 }
       
   263 
       
   264 HRESULT QMFActivate::UnlockStore()
       
   265 {
       
   266     m_mutex.unlock();
       
   267 
       
   268     return S_OK;
       
   269 }
       
   270 
       
   271 HRESULT QMFActivate::GetCount(UINT32 *pcItems)
       
   272 {
       
   273     if (!pcItems) {
       
   274         return E_POINTER;
       
   275     } else {
       
   276         *pcItems = 0;
       
   277 
       
   278         return S_OK;
       
   279     }
       
   280 }
       
   281 
       
   282 HRESULT QMFActivate::GetItemByIndex(UINT32 unIndex, GUID *pguidKey, PROPVARIANT *pValue)
       
   283 {
       
   284     Q_UNUSED(unIndex);
       
   285     Q_UNUSED(pguidKey);
       
   286     Q_UNUSED(pValue);
       
   287 
       
   288     return MF_E_ATTRIBUTENOTFOUND; 
       
   289 }
       
   290 
       
   291 HRESULT QMFActivate::CopyAllItems(IMFAttributes *pDest)
       
   292 {
       
   293     Q_UNUSED(pDest);
       
   294 
       
   295     return MF_E_ATTRIBUTENOTFOUND; 
       
   296 }