os/security/contentmgmt/referencedrmagent/tcaf/source/namespacestep.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 * The code in this file is not executed.
    16 * It is compiled to ensure that types in the ContentAccess namespace can be used
    17 * when the headers are included but the namespace is not in scope.
    18 * It will ensure that a regression cannot occur if during development the ContentAccess
    19 * namespace is brought into scope in error by any of the public header files.
    20 * Any new types added to the ContentAccess namespace must also be added to this file.
    21 * ContentAccess namespace when it is not in scope.
    22 * This test does not execute.
    23 * This test is a compile time test.
    24 *
    25 */
    26 
    27 
    28 /**
    29  @SYMTestCaseID			SYSLIB-ECOM-CT-3404
    30  @SYMTestCaseDesc		Ensures there are no name collisions with types defined in the
    31  @SYMTestPriority			High
    32  @SYMTestActions			For each type in the ContentAccess namespace reuse the type name.
    33  @SYMTestExpectedResults	This is a compile time test.
    34  @SYMDEF				PDEF102493
    35 */
    36 #include <caf/caf.h>
    37 
    38 // streamableptrarray.h
    39 #include <caf/streamableptrarray.h>
    40 
    41 typedef TInt RStreamablePtrArray;
    42 RStreamablePtrArray streamablePtrArray=0;
    43 
    44 // agent.h
    45 #include <caf/agent.h>
    46 
    47 typedef TInt TAgent;
    48 TAgent agent=0;
    49 
    50 // agentfactory.h
    51 #include <caf/agentfactory.h>
    52 
    53 typedef TInt CAgentFactory;
    54 CAgentFactory agentFactory=0;
    55 
    56 // agentinterface.h
    57 #include <caf/agentinterface.h>
    58 
    59 typedef TInt CAgentData;
    60 CAgentData agentData=0;
    61 
    62 typedef TInt CAgentContent;
    63 CAgentContent agentContent=0;
    64 
    65 typedef TInt CAgentImportFile;
    66 CAgentImportFile agentImportFile=0;
    67 
    68 typedef TInt CAgentManager;
    69 CAgentManager agentManager=0;
    70 
    71 typedef TInt CAgentRightsManager;
    72 CAgentRightsManager agentRightsManager=0;
    73 
    74 // attribute.h
    75 #include <caf/attribute.h>
    76 
    77 typedef TInt CAttribute;
    78 CAttribute attribute=0;
    79 
    80 // attributeset.h
    81 #include <caf/attributeset.h>
    82 
    83 typedef TInt RAttributeSet;
    84 RAttributeSet attributeSet=0;
    85 
    86 // bitset.h
    87 #include <caf/bitset.h>
    88 
    89 typedef TInt CBitset;
    90 CBitset bitset=0;
    91 
    92 // CafMimeHeader.h
    93 #include <caf/cafmimeheader.h>
    94 
    95 typedef TInt CCafMimeHeader;
    96 CCafMimeHeader cafMimeHeader=0;
    97 
    98 
    99 // caftypes.h
   100 #include <caf/caftypes.h>
   101 
   102 typedef TInt TQosAttribute;
   103 TQosAttribute qosAttribute=0;
   104 typedef TInt EQosBufferSize;
   105 EQosBufferSize qosBufferSize=0;
   106 typedef TInt EQosAttrTop;
   107 EQosAttrTop qosAttrTop=0;
   108 
   109 typedef TInt TMimeFields;
   110 TMimeFields mimeFields=0;
   111 typedef TInt EContentType;
   112 EContentType contentType=0;
   113 typedef TInt EContentLength;
   114 EContentLength contentLength=0;
   115 typedef TInt EContentId;
   116 EContentId contentId=0;
   117 typedef TInt EContentTransferEncoding;
   118 EContentTransferEncoding contentTransferEncoding=0;
   119 typedef TInt EBoundary;
   120 EBoundary boundary=0;
   121 typedef TInt EMimeMax;
   122 EMimeMax mimeMax=0;
   123 
   124 typedef TInt TContentShareMode;
   125 TContentShareMode contentShareMode=0;
   126 typedef TInt EContentShareReadOnly;
   127 EContentShareReadOnly contentShareReadOnly=0;
   128 typedef TInt EContentShareReadWrite;
   129 EContentShareReadWrite contentShareReadWrite=0;
   130 typedef TInt EContentShareExclusive;
   131 EContentShareExclusive contentShareExclusive=0;
   132 
   133 typedef TInt TIntent;
   134 TIntent intent=0;
   135 typedef TInt EPeek;
   136 EPeek peek=0;
   137 typedef TInt EPlay;
   138 EPlay play=0;
   139 typedef TInt EView;
   140 EView view=0;
   141 typedef TInt EExecute;
   142 EExecute execute=0;
   143 typedef TInt EPrint;
   144 EPrint print=0;
   145 typedef TInt EPause;
   146 EPause pause=0;
   147 typedef TInt EContinue;
   148 EContinue continue1=0;
   149 typedef TInt EStop;
   150 EStop stop=0;
   151 typedef TInt EUnknown;
   152 EUnknown unknown=0;
   153 typedef TInt EInstall;
   154 EInstall install=0;
   155 	
   156 typedef TInt TOutputType;
   157 TOutputType outputType=0;
   158 typedef TInt EContent;
   159 EContent content=0;
   160 typedef TInt EReceipt;
   161 EReceipt receipt=0;
   162 
   163 typedef TInt TImportStatus;
   164 TImportStatus importStatus=0;
   165 typedef TInt EInProgress;
   166 EInProgress inProgress=0;
   167 typedef TInt EWaitingForNewOutputFile;
   168 EWaitingForNewOutputFile waitingForNewOutputFile=0;
   169 typedef TInt EComplete;
   170 EComplete complete=0;
   171 typedef TInt EFailed;
   172 EFailed failed=0;
   173 typedef TInt EUnsupportedMedia;
   174 EUnsupportedMedia unsupportedMedia=0;
   175 
   176 typedef TInt TAttribute;
   177 TAttribute attribute2=0;
   178 typedef TInt EIsProtected;
   179 EIsProtected isProtected=0;
   180 typedef TInt EIsForwardable;
   181 EIsForwardable isForwardable=0;
   182 typedef TInt EIsModifyable;
   183 EIsModifyable isModifyable=0;
   184 typedef TInt EIsCopyable;
   185 EIsCopyable isCopyable=0;
   186 typedef TInt ECanPlay;
   187 ECanPlay canPlay=0;
   188 typedef TInt ECanPrint;
   189 ECanPrint canPrint=0;
   190 typedef TInt ECanExecute;
   191 ECanExecute canExecute=0;
   192 typedef TInt ECanView;
   193 ECanView canView=0;
   194 typedef TInt ERightsNone;
   195 ERightsNone rightsNone=0;
   196 typedef TInt ERightsPending;
   197 ERightsPending rightsPending=0;
   198 typedef TInt ERightsHaveExpired;
   199 ERightsHaveExpired rightsHaveExpired=0;
   200 typedef TInt EPreviewAvailable;
   201 EPreviewAvailable previewAvailable=0;
   202 typedef TInt EContentCDataInUse;
   203 EContentCDataInUse contentCDataInUse=0;
   204 typedef TInt ECanRewind;
   205 ECanRewind canRewind=0;
   206 typedef TInt ECopyPaste;
   207 ECopyPaste copyPaste=0;
   208 typedef TInt ERightsConsumable;
   209 ERightsConsumable rightsConsumable=0;
   210 typedef TInt ERightsStateless;
   211 ERightsStateless rightsStateless=0;
   212 typedef TInt ECanMove;
   213 ECanMove canMove=0;
   214 typedef TInt ECanRename;
   215 ECanRename canRename=0;
   216 typedef TInt ECanAutomaticConsume;
   217 ECanAutomaticConsume canAutomaticConsume=0;
   218 typedef TInt EAgentSpecificAttributeBase;
   219 EAgentSpecificAttributeBase agentSpecificAttributeBase=0;
   220 
   221 typedef TInt TStringAttribute;
   222 TStringAttribute stringAttribute=0;
   223 typedef TInt EDescription;
   224 EDescription description=0;
   225 typedef TInt EMimeType;
   226 EMimeType mimeType=0;
   227 typedef TInt ETitle;
   228 ETitle title=0;
   229 typedef TInt EAuthor;
   230 EAuthor author=0;
   231 typedef TInt EIconURI;
   232 EIconURI iconURI=0;
   233 typedef TInt EPreviewURI;
   234 EPreviewURI previewURI=0;
   235 typedef TInt EContentURI;
   236 EContentURI contentURI=0;
   237 typedef TInt EContentID;
   238 EContentID contentID=0;
   239 typedef TInt EInfoURL;
   240 EInfoURL infoURL=0;
   241 typedef TInt EPendingRightsETA;
   242 EPendingRightsETA pendingRightsETA=0;
   243 typedef TInt ETransactionID;
   244 ETransactionID transactionID=0;
   245 typedef TInt EAgentSpecificStringAttributeBase;
   246 EAgentSpecificStringAttributeBase agentSpecificStringAttributeBase=0;
   247 		
   248 typedef TInt TEventMask;
   249 TEventMask eventMask=0;
   250 typedef TInt ERightsAvailable;
   251 ERightsAvailable rightsAvailable=0;
   252 typedef TInt ERightsExpired;
   253 ERightsExpired rightsExpired=0;
   254 
   255 typedef TInt TEmbeddedType;
   256 TEmbeddedType embeddedType=0;
   257 typedef TInt EContainerObject;
   258 EContainerObject containerObject=0;
   259 typedef TInt EContentObject;
   260 EContentObject contentObject=0;
   261 typedef TInt EAgentSpecificObject;
   262 EAgentSpecificObject agentSpecificObject=0;
   263 
   264 typedef TInt TDisplayInfo;
   265 TDisplayInfo displayInfo=0;
   266 typedef TInt EFileProperties;
   267 EFileProperties fileProperties=0;
   268 typedef TInt EFileAndRights;
   269 EFileAndRights fileAndRights=0;
   270 typedef TInt ERights;
   271 ERights rights=0;
   272 
   273 typedef TInt TRightsTypeMask;
   274 TRightsTypeMask rightsTypeMask=0;
   275 typedef TInt ERightsTypeConsumable;
   276 ERightsTypeConsumable rightsTypeConsumable=0;
   277 typedef TInt ERightsTypeStateless;
   278 ERightsTypeStateless rightsTypeStateless=0;
   279 
   280 typedef TInt TRightsStatus;
   281 TRightsStatus rightsStatus=0;
   282 typedef TInt ERightsStatusNone;
   283 ERightsStatusNone rightsStatusNone=0;
   284 typedef TInt ERightsStatusValid;
   285 ERightsStatusValid rightsStatusValid=0;
   286 typedef TInt ERightsStatusExpired;
   287 ERightsStatusExpired rightsStatusExpired=0;
   288 typedef TInt ERightsStatusPending;
   289 ERightsStatusPending rightsStatusPending=0;
   290 
   291 typedef TInt TAgentProperty;
   292 TAgentProperty agentProperty=0;
   293 typedef TInt EAgentPropertyBufferSize;
   294 EAgentPropertyBufferSize agentPropertyBufferSize=0;
   295 typedef TInt EAgentPropertyAgentUI;
   296 EAgentPropertyAgentUI agentPropertyAgentUI=0;
   297 typedef TInt EAgentPropertyMultipleSequence;
   298 EAgentPropertyMultipleSequence agentPropertyMultipleSequence=0;
   299 
   300 typedef TInt KMaxCafUniqueId;
   301 KMaxCafUniqueId maxCafUniqueId=0;
   302 typedef TInt KMaxCafContentName;
   303 KMaxCafContentName maxCafContentName=0;
   304 
   305 // content.h
   306 #include <caf/content.h>
   307 
   308 typedef TInt CContent;
   309 CContent content2=0;
   310 
   311 // data.h
   312 #include <caf/content.h>
   313 
   314 typedef TInt CData;
   315 CData data=0;
   316 
   317 // dirstreamable.h
   318 #include <caf/dirstreamable.h>
   319 
   320 typedef TInt CDirStreamable;
   321 CDirStreamable dirStreamable=0;
   322 
   323 // embeddedobject.h
   324 #include <caf/embeddedobject.h>
   325 
   326 typedef TInt CEmbeddedObject;
   327 CEmbeddedObject embeddedObject=0;
   328 
   329 // f32agentui.h
   330 #include <caf/f32agentui.h>
   331 
   332 typedef TInt CF32AgentUi;
   333 CF32AgentUi f32AgentUi=0;
   334 typedef TInt TF32AgentUiFactory;
   335 TF32AgentUiFactory f32AgentUiFactory=0;
   336 
   337 // importfile.h
   338 #include <caf/importfile.h>
   339 
   340 typedef TInt CImportFile;
   341 CImportFile importFile=0;
   342 
   343 // manager.h
   344 #include <caf/manager.h>
   345 
   346 typedef TInt CManager;
   347 CManager manager=0;
   348 
   349 // metadata.h
   350 #include <caf/metadata.h>
   351 
   352 typedef TInt CMetaData;
   353 CMetaData metaData=0;
   354 
   355 // metadataarray.h
   356 #include <caf/metadataarray.h>
   357 
   358 typedef TInt CMetaDataArray;
   359 CMetaDataArray metaDataArray=0;
   360 
   361 // rightsInfo.h
   362 #include <caf/rightsinfo.h>
   363 
   364 typedef TInt CRightsInfo;
   365 CRightsInfo rightsInfo=0;
   366 typedef TInt MAgentRightsBase;
   367 MAgentRightsBase agentRightsBase=0;
   368 
   369 // rightsmanager.h
   370 #include <caf/rightsmanager.h>
   371 
   372 typedef TInt CRightsManager;
   373 CRightsManager rightsManager=0;
   374 
   375 // stringattributeset.h
   376 #include <caf/stringattributeset.h>
   377 
   378 typedef TInt RStringAttributeSet;
   379 RStringAttributeSet stringAttributeSet=0;
   380 
   381 // supplier.h
   382 #include <caf/supplier.h>
   383 
   384 typedef TInt CSupplier;
   385 CSupplier supplier=0;
   386 
   387 // supplieroutputfile.h
   388 #include <caf/supplieroutputfile.h>
   389 
   390 typedef TInt CSupplierOutputFile;
   391 CSupplierOutputFile supplierOutputFile=0;
   392 
   393 // virtualpath.h
   394 #include <caf/virtualpath.h>
   395 
   396 typedef TInt CVirtualPath;
   397 CVirtualPath virtualPath=0;
   398 
   399 // virtualpathptr.h
   400 #include <caf/virtualpathptr.h>
   401 
   402 typedef TInt TVirtualPathPtr;
   403 TVirtualPathPtr virtualPathPtr=0;
   404