os/security/contentmgmt/referencedrmagent/tcaf/source/namespacestep.cpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/security/contentmgmt/referencedrmagent/tcaf/source/namespacestep.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,404 @@
     1.4 +/*
     1.5 +* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of the License "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description: 
    1.18 +* The code in this file is not executed.
    1.19 +* It is compiled to ensure that types in the ContentAccess namespace can be used
    1.20 +* when the headers are included but the namespace is not in scope.
    1.21 +* It will ensure that a regression cannot occur if during development the ContentAccess
    1.22 +* namespace is brought into scope in error by any of the public header files.
    1.23 +* Any new types added to the ContentAccess namespace must also be added to this file.
    1.24 +* ContentAccess namespace when it is not in scope.
    1.25 +* This test does not execute.
    1.26 +* This test is a compile time test.
    1.27 +*
    1.28 +*/
    1.29 +
    1.30 +
    1.31 +/**
    1.32 + @SYMTestCaseID			SYSLIB-ECOM-CT-3404
    1.33 + @SYMTestCaseDesc		Ensures there are no name collisions with types defined in the
    1.34 + @SYMTestPriority			High
    1.35 + @SYMTestActions			For each type in the ContentAccess namespace reuse the type name.
    1.36 + @SYMTestExpectedResults	This is a compile time test.
    1.37 + @SYMDEF				PDEF102493
    1.38 +*/
    1.39 +#include <caf/caf.h>
    1.40 +
    1.41 +// streamableptrarray.h
    1.42 +#include <caf/streamableptrarray.h>
    1.43 +
    1.44 +typedef TInt RStreamablePtrArray;
    1.45 +RStreamablePtrArray streamablePtrArray=0;
    1.46 +
    1.47 +// agent.h
    1.48 +#include <caf/agent.h>
    1.49 +
    1.50 +typedef TInt TAgent;
    1.51 +TAgent agent=0;
    1.52 +
    1.53 +// agentfactory.h
    1.54 +#include <caf/agentfactory.h>
    1.55 +
    1.56 +typedef TInt CAgentFactory;
    1.57 +CAgentFactory agentFactory=0;
    1.58 +
    1.59 +// agentinterface.h
    1.60 +#include <caf/agentinterface.h>
    1.61 +
    1.62 +typedef TInt CAgentData;
    1.63 +CAgentData agentData=0;
    1.64 +
    1.65 +typedef TInt CAgentContent;
    1.66 +CAgentContent agentContent=0;
    1.67 +
    1.68 +typedef TInt CAgentImportFile;
    1.69 +CAgentImportFile agentImportFile=0;
    1.70 +
    1.71 +typedef TInt CAgentManager;
    1.72 +CAgentManager agentManager=0;
    1.73 +
    1.74 +typedef TInt CAgentRightsManager;
    1.75 +CAgentRightsManager agentRightsManager=0;
    1.76 +
    1.77 +// attribute.h
    1.78 +#include <caf/attribute.h>
    1.79 +
    1.80 +typedef TInt CAttribute;
    1.81 +CAttribute attribute=0;
    1.82 +
    1.83 +// attributeset.h
    1.84 +#include <caf/attributeset.h>
    1.85 +
    1.86 +typedef TInt RAttributeSet;
    1.87 +RAttributeSet attributeSet=0;
    1.88 +
    1.89 +// bitset.h
    1.90 +#include <caf/bitset.h>
    1.91 +
    1.92 +typedef TInt CBitset;
    1.93 +CBitset bitset=0;
    1.94 +
    1.95 +// CafMimeHeader.h
    1.96 +#include <caf/cafmimeheader.h>
    1.97 +
    1.98 +typedef TInt CCafMimeHeader;
    1.99 +CCafMimeHeader cafMimeHeader=0;
   1.100 +
   1.101 +
   1.102 +// caftypes.h
   1.103 +#include <caf/caftypes.h>
   1.104 +
   1.105 +typedef TInt TQosAttribute;
   1.106 +TQosAttribute qosAttribute=0;
   1.107 +typedef TInt EQosBufferSize;
   1.108 +EQosBufferSize qosBufferSize=0;
   1.109 +typedef TInt EQosAttrTop;
   1.110 +EQosAttrTop qosAttrTop=0;
   1.111 +
   1.112 +typedef TInt TMimeFields;
   1.113 +TMimeFields mimeFields=0;
   1.114 +typedef TInt EContentType;
   1.115 +EContentType contentType=0;
   1.116 +typedef TInt EContentLength;
   1.117 +EContentLength contentLength=0;
   1.118 +typedef TInt EContentId;
   1.119 +EContentId contentId=0;
   1.120 +typedef TInt EContentTransferEncoding;
   1.121 +EContentTransferEncoding contentTransferEncoding=0;
   1.122 +typedef TInt EBoundary;
   1.123 +EBoundary boundary=0;
   1.124 +typedef TInt EMimeMax;
   1.125 +EMimeMax mimeMax=0;
   1.126 +
   1.127 +typedef TInt TContentShareMode;
   1.128 +TContentShareMode contentShareMode=0;
   1.129 +typedef TInt EContentShareReadOnly;
   1.130 +EContentShareReadOnly contentShareReadOnly=0;
   1.131 +typedef TInt EContentShareReadWrite;
   1.132 +EContentShareReadWrite contentShareReadWrite=0;
   1.133 +typedef TInt EContentShareExclusive;
   1.134 +EContentShareExclusive contentShareExclusive=0;
   1.135 +
   1.136 +typedef TInt TIntent;
   1.137 +TIntent intent=0;
   1.138 +typedef TInt EPeek;
   1.139 +EPeek peek=0;
   1.140 +typedef TInt EPlay;
   1.141 +EPlay play=0;
   1.142 +typedef TInt EView;
   1.143 +EView view=0;
   1.144 +typedef TInt EExecute;
   1.145 +EExecute execute=0;
   1.146 +typedef TInt EPrint;
   1.147 +EPrint print=0;
   1.148 +typedef TInt EPause;
   1.149 +EPause pause=0;
   1.150 +typedef TInt EContinue;
   1.151 +EContinue continue1=0;
   1.152 +typedef TInt EStop;
   1.153 +EStop stop=0;
   1.154 +typedef TInt EUnknown;
   1.155 +EUnknown unknown=0;
   1.156 +typedef TInt EInstall;
   1.157 +EInstall install=0;
   1.158 +	
   1.159 +typedef TInt TOutputType;
   1.160 +TOutputType outputType=0;
   1.161 +typedef TInt EContent;
   1.162 +EContent content=0;
   1.163 +typedef TInt EReceipt;
   1.164 +EReceipt receipt=0;
   1.165 +
   1.166 +typedef TInt TImportStatus;
   1.167 +TImportStatus importStatus=0;
   1.168 +typedef TInt EInProgress;
   1.169 +EInProgress inProgress=0;
   1.170 +typedef TInt EWaitingForNewOutputFile;
   1.171 +EWaitingForNewOutputFile waitingForNewOutputFile=0;
   1.172 +typedef TInt EComplete;
   1.173 +EComplete complete=0;
   1.174 +typedef TInt EFailed;
   1.175 +EFailed failed=0;
   1.176 +typedef TInt EUnsupportedMedia;
   1.177 +EUnsupportedMedia unsupportedMedia=0;
   1.178 +
   1.179 +typedef TInt TAttribute;
   1.180 +TAttribute attribute2=0;
   1.181 +typedef TInt EIsProtected;
   1.182 +EIsProtected isProtected=0;
   1.183 +typedef TInt EIsForwardable;
   1.184 +EIsForwardable isForwardable=0;
   1.185 +typedef TInt EIsModifyable;
   1.186 +EIsModifyable isModifyable=0;
   1.187 +typedef TInt EIsCopyable;
   1.188 +EIsCopyable isCopyable=0;
   1.189 +typedef TInt ECanPlay;
   1.190 +ECanPlay canPlay=0;
   1.191 +typedef TInt ECanPrint;
   1.192 +ECanPrint canPrint=0;
   1.193 +typedef TInt ECanExecute;
   1.194 +ECanExecute canExecute=0;
   1.195 +typedef TInt ECanView;
   1.196 +ECanView canView=0;
   1.197 +typedef TInt ERightsNone;
   1.198 +ERightsNone rightsNone=0;
   1.199 +typedef TInt ERightsPending;
   1.200 +ERightsPending rightsPending=0;
   1.201 +typedef TInt ERightsHaveExpired;
   1.202 +ERightsHaveExpired rightsHaveExpired=0;
   1.203 +typedef TInt EPreviewAvailable;
   1.204 +EPreviewAvailable previewAvailable=0;
   1.205 +typedef TInt EContentCDataInUse;
   1.206 +EContentCDataInUse contentCDataInUse=0;
   1.207 +typedef TInt ECanRewind;
   1.208 +ECanRewind canRewind=0;
   1.209 +typedef TInt ECopyPaste;
   1.210 +ECopyPaste copyPaste=0;
   1.211 +typedef TInt ERightsConsumable;
   1.212 +ERightsConsumable rightsConsumable=0;
   1.213 +typedef TInt ERightsStateless;
   1.214 +ERightsStateless rightsStateless=0;
   1.215 +typedef TInt ECanMove;
   1.216 +ECanMove canMove=0;
   1.217 +typedef TInt ECanRename;
   1.218 +ECanRename canRename=0;
   1.219 +typedef TInt ECanAutomaticConsume;
   1.220 +ECanAutomaticConsume canAutomaticConsume=0;
   1.221 +typedef TInt EAgentSpecificAttributeBase;
   1.222 +EAgentSpecificAttributeBase agentSpecificAttributeBase=0;
   1.223 +
   1.224 +typedef TInt TStringAttribute;
   1.225 +TStringAttribute stringAttribute=0;
   1.226 +typedef TInt EDescription;
   1.227 +EDescription description=0;
   1.228 +typedef TInt EMimeType;
   1.229 +EMimeType mimeType=0;
   1.230 +typedef TInt ETitle;
   1.231 +ETitle title=0;
   1.232 +typedef TInt EAuthor;
   1.233 +EAuthor author=0;
   1.234 +typedef TInt EIconURI;
   1.235 +EIconURI iconURI=0;
   1.236 +typedef TInt EPreviewURI;
   1.237 +EPreviewURI previewURI=0;
   1.238 +typedef TInt EContentURI;
   1.239 +EContentURI contentURI=0;
   1.240 +typedef TInt EContentID;
   1.241 +EContentID contentID=0;
   1.242 +typedef TInt EInfoURL;
   1.243 +EInfoURL infoURL=0;
   1.244 +typedef TInt EPendingRightsETA;
   1.245 +EPendingRightsETA pendingRightsETA=0;
   1.246 +typedef TInt ETransactionID;
   1.247 +ETransactionID transactionID=0;
   1.248 +typedef TInt EAgentSpecificStringAttributeBase;
   1.249 +EAgentSpecificStringAttributeBase agentSpecificStringAttributeBase=0;
   1.250 +		
   1.251 +typedef TInt TEventMask;
   1.252 +TEventMask eventMask=0;
   1.253 +typedef TInt ERightsAvailable;
   1.254 +ERightsAvailable rightsAvailable=0;
   1.255 +typedef TInt ERightsExpired;
   1.256 +ERightsExpired rightsExpired=0;
   1.257 +
   1.258 +typedef TInt TEmbeddedType;
   1.259 +TEmbeddedType embeddedType=0;
   1.260 +typedef TInt EContainerObject;
   1.261 +EContainerObject containerObject=0;
   1.262 +typedef TInt EContentObject;
   1.263 +EContentObject contentObject=0;
   1.264 +typedef TInt EAgentSpecificObject;
   1.265 +EAgentSpecificObject agentSpecificObject=0;
   1.266 +
   1.267 +typedef TInt TDisplayInfo;
   1.268 +TDisplayInfo displayInfo=0;
   1.269 +typedef TInt EFileProperties;
   1.270 +EFileProperties fileProperties=0;
   1.271 +typedef TInt EFileAndRights;
   1.272 +EFileAndRights fileAndRights=0;
   1.273 +typedef TInt ERights;
   1.274 +ERights rights=0;
   1.275 +
   1.276 +typedef TInt TRightsTypeMask;
   1.277 +TRightsTypeMask rightsTypeMask=0;
   1.278 +typedef TInt ERightsTypeConsumable;
   1.279 +ERightsTypeConsumable rightsTypeConsumable=0;
   1.280 +typedef TInt ERightsTypeStateless;
   1.281 +ERightsTypeStateless rightsTypeStateless=0;
   1.282 +
   1.283 +typedef TInt TRightsStatus;
   1.284 +TRightsStatus rightsStatus=0;
   1.285 +typedef TInt ERightsStatusNone;
   1.286 +ERightsStatusNone rightsStatusNone=0;
   1.287 +typedef TInt ERightsStatusValid;
   1.288 +ERightsStatusValid rightsStatusValid=0;
   1.289 +typedef TInt ERightsStatusExpired;
   1.290 +ERightsStatusExpired rightsStatusExpired=0;
   1.291 +typedef TInt ERightsStatusPending;
   1.292 +ERightsStatusPending rightsStatusPending=0;
   1.293 +
   1.294 +typedef TInt TAgentProperty;
   1.295 +TAgentProperty agentProperty=0;
   1.296 +typedef TInt EAgentPropertyBufferSize;
   1.297 +EAgentPropertyBufferSize agentPropertyBufferSize=0;
   1.298 +typedef TInt EAgentPropertyAgentUI;
   1.299 +EAgentPropertyAgentUI agentPropertyAgentUI=0;
   1.300 +typedef TInt EAgentPropertyMultipleSequence;
   1.301 +EAgentPropertyMultipleSequence agentPropertyMultipleSequence=0;
   1.302 +
   1.303 +typedef TInt KMaxCafUniqueId;
   1.304 +KMaxCafUniqueId maxCafUniqueId=0;
   1.305 +typedef TInt KMaxCafContentName;
   1.306 +KMaxCafContentName maxCafContentName=0;
   1.307 +
   1.308 +// content.h
   1.309 +#include <caf/content.h>
   1.310 +
   1.311 +typedef TInt CContent;
   1.312 +CContent content2=0;
   1.313 +
   1.314 +// data.h
   1.315 +#include <caf/content.h>
   1.316 +
   1.317 +typedef TInt CData;
   1.318 +CData data=0;
   1.319 +
   1.320 +// dirstreamable.h
   1.321 +#include <caf/dirstreamable.h>
   1.322 +
   1.323 +typedef TInt CDirStreamable;
   1.324 +CDirStreamable dirStreamable=0;
   1.325 +
   1.326 +// embeddedobject.h
   1.327 +#include <caf/embeddedobject.h>
   1.328 +
   1.329 +typedef TInt CEmbeddedObject;
   1.330 +CEmbeddedObject embeddedObject=0;
   1.331 +
   1.332 +// f32agentui.h
   1.333 +#include <caf/f32agentui.h>
   1.334 +
   1.335 +typedef TInt CF32AgentUi;
   1.336 +CF32AgentUi f32AgentUi=0;
   1.337 +typedef TInt TF32AgentUiFactory;
   1.338 +TF32AgentUiFactory f32AgentUiFactory=0;
   1.339 +
   1.340 +// importfile.h
   1.341 +#include <caf/importfile.h>
   1.342 +
   1.343 +typedef TInt CImportFile;
   1.344 +CImportFile importFile=0;
   1.345 +
   1.346 +// manager.h
   1.347 +#include <caf/manager.h>
   1.348 +
   1.349 +typedef TInt CManager;
   1.350 +CManager manager=0;
   1.351 +
   1.352 +// metadata.h
   1.353 +#include <caf/metadata.h>
   1.354 +
   1.355 +typedef TInt CMetaData;
   1.356 +CMetaData metaData=0;
   1.357 +
   1.358 +// metadataarray.h
   1.359 +#include <caf/metadataarray.h>
   1.360 +
   1.361 +typedef TInt CMetaDataArray;
   1.362 +CMetaDataArray metaDataArray=0;
   1.363 +
   1.364 +// rightsInfo.h
   1.365 +#include <caf/rightsinfo.h>
   1.366 +
   1.367 +typedef TInt CRightsInfo;
   1.368 +CRightsInfo rightsInfo=0;
   1.369 +typedef TInt MAgentRightsBase;
   1.370 +MAgentRightsBase agentRightsBase=0;
   1.371 +
   1.372 +// rightsmanager.h
   1.373 +#include <caf/rightsmanager.h>
   1.374 +
   1.375 +typedef TInt CRightsManager;
   1.376 +CRightsManager rightsManager=0;
   1.377 +
   1.378 +// stringattributeset.h
   1.379 +#include <caf/stringattributeset.h>
   1.380 +
   1.381 +typedef TInt RStringAttributeSet;
   1.382 +RStringAttributeSet stringAttributeSet=0;
   1.383 +
   1.384 +// supplier.h
   1.385 +#include <caf/supplier.h>
   1.386 +
   1.387 +typedef TInt CSupplier;
   1.388 +CSupplier supplier=0;
   1.389 +
   1.390 +// supplieroutputfile.h
   1.391 +#include <caf/supplieroutputfile.h>
   1.392 +
   1.393 +typedef TInt CSupplierOutputFile;
   1.394 +CSupplierOutputFile supplierOutputFile=0;
   1.395 +
   1.396 +// virtualpath.h
   1.397 +#include <caf/virtualpath.h>
   1.398 +
   1.399 +typedef TInt CVirtualPath;
   1.400 +CVirtualPath virtualPath=0;
   1.401 +
   1.402 +// virtualpathptr.h
   1.403 +#include <caf/virtualpathptr.h>
   1.404 +
   1.405 +typedef TInt TVirtualPathPtr;
   1.406 +TVirtualPathPtr virtualPathPtr=0;
   1.407 +