upnpharvester/mdhserver/inc/server/mdhavcpadapter.h
branchIOP_Improvements
changeset 40 08b5eae9f9ff
parent 39 6369bfd1b60d
child 41 b4d83ea1d6e2
equal deleted inserted replaced
39:6369bfd1b60d 40:08b5eae9f9ff
     1 /*
       
     2 * Copyright (c) 2007 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 "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:      AvControlPoint adapter helper class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #ifndef CMMDHAVCPADAPTER
       
    24 #define CMMDHAVCPADAPTER
       
    25 
       
    26 //  INCLUDES
       
    27 #include "upnpavcontrolpointobserver.h"
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  Interface class.
       
    33 *  This class implements a observer interface for AV controlpoint
       
    34 *
       
    35 *  @since S60 3.1
       
    36 */
       
    37 class CCmMdhAvControlPointAdapter: public CBase, 
       
    38                                    public MUpnpAVControlPointObserver
       
    39         {
       
    40     public:  // Constructors and destructor
       
    41 
       
    42        /**
       
    43         * Two-phased constructor.
       
    44         */
       
    45         static CCmMdhAvControlPointAdapter* NewL();
       
    46 
       
    47        /**
       
    48         * Two-phased constructor.
       
    49         */        
       
    50         static CCmMdhAvControlPointAdapter* NewLC();
       
    51         
       
    52        /**
       
    53         * Destructor
       
    54         */        
       
    55         virtual ~CCmMdhAvControlPointAdapter();
       
    56         
       
    57     protected:
       
    58     
       
    59        /**
       
    60         * ConstructL
       
    61         */    
       
    62         void ConstructL();
       
    63         
       
    64        /**
       
    65         * Default constructor
       
    66         */        
       
    67         CCmMdhAvControlPointAdapter();
       
    68         
       
    69         
       
    70     public: // Functions from base classes
       
    71     
       
    72         /**
       
    73          * See upnpavcontrolpointobserver.h
       
    74          */
       
    75         virtual void RcSetVolumeResponse(
       
    76             const TDesC8& aUuid,
       
    77             TInt aSessionId,
       
    78             TInt aErr, 
       
    79             const TDesC8& aInstance, 
       
    80             const TDesC8& aChannel, 
       
    81             const TDesC8& aDesiredVolume);
       
    82             public: // New functions
       
    83         
       
    84         /**
       
    85          * See upnpavcontrolpointobserver.h
       
    86          */
       
    87         virtual void RcVolumeResponse(
       
    88             const TDesC8& aUuid,
       
    89             TInt aSessionId,
       
    90             TInt aErr, 
       
    91             const TDesC8& aInstance, 
       
    92             const TDesC8& aChannel, 
       
    93             const TDesC8& aCurrentVolume); 
       
    94         
       
    95         /**
       
    96          * See upnpavcontrolpointobserver.h
       
    97          */
       
    98         virtual void RcSetMuteResponse(
       
    99             const TDesC8& aUuid,
       
   100             TInt aSessionId,
       
   101             TInt aErr, 
       
   102             const TDesC8& aInstance, 
       
   103             const TDesC8& aChannel, 
       
   104             const TDesC8& aDesiredMute);
       
   105         
       
   106         /**
       
   107          * See upnpavcontrolpointobserver.h
       
   108          */
       
   109         virtual void RcMuteResponse(
       
   110             const TDesC8& aUuid,
       
   111             TInt aSessionId,
       
   112             TInt aErr, 
       
   113             const TDesC8& aInstance, 
       
   114             const TDesC8& aChannel, 
       
   115             const TDesC8& aCurrentMute); 
       
   116        
       
   117         /**
       
   118          * See upnpavcontrolpointobserver.h
       
   119          */
       
   120         virtual void AvtSetTransportUriResponse(
       
   121             const TDesC8& aUuid,
       
   122             TInt aSessionId,
       
   123             TInt aErr,
       
   124             const TDesC8& aInstanceId,
       
   125             const TDesC8& aCurrentUri,
       
   126             const TDesC8& aCurrentUriMetaData);
       
   127         
       
   128         /**
       
   129          * See upnpavcontrolpointobserver.h
       
   130          */
       
   131         virtual void AvtSetNextTransportUriResponse(
       
   132             const TDesC8& aUuid,
       
   133             TInt aSessionId,
       
   134             TInt aErr,
       
   135             const TDesC8& aInstanceId,
       
   136             const TDesC8& aNextUri,
       
   137             const TDesC8& aNextUriMetaData);
       
   138         
       
   139         /**
       
   140          * See upnpavcontrolpointobserver.h
       
   141          */
       
   142         virtual void AvtMediaInfoResponse(
       
   143             const TDesC8& aUuid,
       
   144             TInt aSessionId,
       
   145             TInt aErr,
       
   146             const TDesC8& aInstanceId,
       
   147             const TDesC8& aNrTracks,
       
   148             const TDesC8& aMediaDuration,
       
   149             const TDesC8& aCurrentUri,
       
   150             const TDesC8& aCurrentUriMetaData,
       
   151             const TDesC8& aNextUri,
       
   152             const TDesC8& aNextUriMetaData,
       
   153             const TDesC8& aPlayMedium,
       
   154             const TDesC8& aRecordMedium,
       
   155             const TDesC8& aWriteStatus);
       
   156         
       
   157         /**
       
   158          * See upnpavcontrolpointobserver.h
       
   159          */
       
   160         virtual void AvtGetTransportInfoResponse(
       
   161             const TDesC8& aUuid,
       
   162             TInt aSessionId,
       
   163             TInt aErr,
       
   164             const TDesC8& aInstanceId,
       
   165             const TDesC8& aCurrenTransportState,
       
   166             const TDesC8& aCurrentTransportStatus,
       
   167             const TDesC8& aCurrentSpeed);
       
   168         
       
   169         /**
       
   170          * See upnpavcontrolpointobserver.h
       
   171          */
       
   172         virtual void AvtPositionInfoResponse(
       
   173             const TDesC8& aUuid,
       
   174             TInt aSessionId,
       
   175             TInt aErr,
       
   176             const TDesC8& aInstanceId,
       
   177             const TDesC8& aTrack,
       
   178             const TDesC8& aTrackDuration,
       
   179             const TDesC8& aTrackMetaData,
       
   180             const TDesC8& aTrackURI,
       
   181             const TDesC8& aRelTime,
       
   182             const TDesC8& aAbsTime,
       
   183             const TDesC8& aRelCount,
       
   184             const TDesC8& aAbsCount);
       
   185         
       
   186         /**
       
   187          * See upnpavcontrolpointobserver.h
       
   188          */
       
   189         virtual void AvtDeviceCapabilitiesResponse(
       
   190             const TDesC8& aUuid,
       
   191             TInt aSessionId,
       
   192             TInt aErr,
       
   193             const TDesC8& aInstanceId,
       
   194             const TDesC8& aPlayMedia,
       
   195             const TDesC8& aRecMedia,
       
   196             const TDesC8& aRecQualityMode);
       
   197         
       
   198         /**
       
   199          * See upnpavcontrolpointobserver.h
       
   200          */
       
   201         virtual void AvtTransportSettingsResponse(
       
   202             const TDesC8& aUuid,
       
   203             TInt aSessionId,
       
   204             TInt aErr,
       
   205             const TDesC8& aInstanceId,
       
   206             const TDesC8& aPlayMode,
       
   207             const TDesC8& aRecQualityMode);
       
   208         
       
   209         /**
       
   210          * See upnpavcontrolpointobserver.h
       
   211          */
       
   212         virtual void AvtStopResponse(
       
   213             const TDesC8& aUuid,
       
   214             TInt aSessionId,
       
   215             TInt aErr,
       
   216             const TDesC8& aInstanceId);
       
   217         
       
   218         /**
       
   219          * See upnpavcontrolpointobserver.h
       
   220          */
       
   221         virtual void AvtPlayResponse(
       
   222             const TDesC8& aUuid,
       
   223             TInt aSessionId,
       
   224             TInt aErr,
       
   225             const TDesC8& aInstanceId,
       
   226             const TDesC8& aSpeed);
       
   227         
       
   228         /**
       
   229          * See upnpavcontrolpointobserver.h
       
   230          */
       
   231         virtual void AvtPauseResponse(
       
   232             const TDesC8& aUuid,
       
   233             TInt aSessionId,
       
   234             TInt aErr,
       
   235             const TDesC8& aInstanceId);
       
   236         
       
   237         /**
       
   238          * See upnpavcontrolpointobserver.h
       
   239          */
       
   240         virtual void AvtRecordResponse(
       
   241             const TDesC8& aUuid,
       
   242             TInt aSessionId,
       
   243             TInt aErr,
       
   244             const TDesC8& aInstanceId);
       
   245         
       
   246         /**
       
   247          * See upnpavcontrolpointobserver.h
       
   248          */
       
   249         virtual void AvtSeekResponse(
       
   250             const TDesC8& aUuid,
       
   251             TInt aSessionId,
       
   252             TInt aErr,
       
   253             const TDesC8& aInstanceId,
       
   254             const TDesC8& aUnit,
       
   255             const TDesC8& aTarget);
       
   256         
       
   257         /**
       
   258          * See upnpavcontrolpointobserver.h
       
   259          */
       
   260         virtual void AvtNextResponse(
       
   261             const TDesC8& aUuid,
       
   262             TInt aSessionId,
       
   263             TInt aErr,
       
   264             const TDesC8& aInstanceId);
       
   265         
       
   266         /**
       
   267          * See upnpavcontrolpointobserver.h
       
   268          */
       
   269         virtual void AvtPreviousResponse(
       
   270             const TDesC8& aUuid,
       
   271             TInt aSessionId,
       
   272             TInt aErr,
       
   273             const TDesC8& aInstanceId);
       
   274         
       
   275         /**
       
   276          * See upnpavcontrolpointobserver.h
       
   277          */
       
   278         virtual void AvtSetPlayModeResponse(
       
   279             const TDesC8& aUuid,
       
   280             TInt aSessionId,
       
   281             TInt aErr,
       
   282             const TDesC8& aInstanceId,
       
   283             const TDesC8& aNewPlayMode);
       
   284         
       
   285         /**
       
   286          * See upnpavcontrolpointobserver.h
       
   287          */
       
   288         virtual void AvtSetRecordModeResponse(
       
   289             const TDesC8& aUuid,
       
   290             TInt aSessionId,
       
   291             TInt aErr,
       
   292             const TDesC8& aInstanceId,
       
   293             const TDesC8& aNewRecordQuality);
       
   294         
       
   295         /**
       
   296          * See upnpavcontrolpointobserver.h
       
   297          */
       
   298         virtual void AvtCurrentTransportActionsResponse(
       
   299             const TDesC8& aUuid,
       
   300             TInt aSessionId,
       
   301             TInt aErr,
       
   302             const TDesC8& aInstanceId,
       
   303             const TDesC8& aActions);
       
   304             
       
   305         /**
       
   306          * See upnpavcontrolpointobserver.h
       
   307          */
       
   308         virtual void CdsSearchCapabilitiesResponse(
       
   309             const TDesC8& aUuid,
       
   310             TInt aSessionId,
       
   311             TInt aErr,
       
   312             const TDesC8& aSearchCaps);
       
   313         
       
   314         /**
       
   315          * See upnpavcontrolpointobserver.h
       
   316          */
       
   317         virtual void CdsSortCapabilitiesResponse(
       
   318             const TDesC8& aUuid,
       
   319             TInt aSessionId,
       
   320             TInt aErr,
       
   321             const TDesC8& aSortCaps);
       
   322         
       
   323         /**
       
   324          * See upnpavcontrolpointobserver.h
       
   325          */
       
   326         virtual void CdsSystemUpdateIdResponse(
       
   327             const TDesC8& aUuid,
       
   328             TInt aSessionId,
       
   329             TInt aErr,
       
   330             TInt aSystemUpdateId);
       
   331 
       
   332         /**
       
   333          * See upnpavcontrolpointobserver.h
       
   334          */
       
   335         virtual void CdsBrowseResponse(
       
   336             const TDesC8& aUuid,
       
   337             TInt aSessionId,
       
   338             TInt aErr,
       
   339             const TDesC8& aObjectID,
       
   340             const TDesC8&  aBrowseFlag,
       
   341             const TDesC8&  aFilter,
       
   342             TInt aIndex,
       
   343             TInt aRequest,
       
   344             const TDesC8&  aSortCriteria,
       
   345             const TDesC8&  aResult,
       
   346             TInt aReturned,
       
   347             TInt aMatches,
       
   348             const TDesC8&  aUpdateID);
       
   349 
       
   350         /**
       
   351          * See upnpavcontrolpointobserver.h
       
   352          */
       
   353         virtual void CdsSearchResponse(
       
   354             const TDesC8& aUuid,
       
   355             TInt aSessionId,
       
   356             TInt aErr,
       
   357             const TDesC8& aContainerId,
       
   358             const TDesC8& aSearchCriteria,
       
   359             const TDesC8& aFilter,
       
   360             TInt aIndex,
       
   361             TInt aRequest,
       
   362             const TDesC8& aSortCriteria,
       
   363             const TDesC8& aResult,
       
   364             TInt aReturned,
       
   365             TInt aMatches,
       
   366             const TDesC8& aUpdateID);
       
   367         
       
   368         /**
       
   369          * See upnpavcontrolpointobserver.h
       
   370          */
       
   371         virtual void CdsDestroyObjectResponse(
       
   372             const TDesC8& aUuid,
       
   373             TInt aSessionId,
       
   374             TInt aErr,
       
   375             const TDesC8& aObjectId );
       
   376         
       
   377         /**
       
   378          * See upnpavcontrolpointobserver.h
       
   379          */
       
   380         virtual void CdsUpdateObjectResponse(
       
   381             const TDesC8& aUuid,
       
   382             TInt aSessionId,
       
   383             TInt aErr,
       
   384             const TDesC8& aObjectId,
       
   385             const TDesC8& aCurrentTagValue,
       
   386             const TDesC8& aNewTagValue );
       
   387 
       
   388         /**
       
   389          * See upnpavcontrolpointobserver.h
       
   390          */       
       
   391         virtual void CdsImportResponse(
       
   392             const TDesC8& aUuid,
       
   393             TInt aSessionId,
       
   394             TInt aErr,
       
   395             const TDesC8& aSourceURI,
       
   396             const TDesC8& aDestinationURI,
       
   397             const TDesC8& aTransferId );
       
   398 
       
   399         /**
       
   400          * See upnpavcontrolpointobserver.h
       
   401          */      
       
   402         virtual void CdsExportResponse(
       
   403             const TDesC8& aUuid,
       
   404             TInt aSessionId,
       
   405             TInt aErr,
       
   406             const TDesC8& aSourceURI,
       
   407             const TDesC8& aDestinationURI,
       
   408             const TDesC8& aTransferId );
       
   409 
       
   410         /**
       
   411          * See upnpavcontrolpointobserver.h
       
   412          */      
       
   413         virtual void CdsStopTransferResponse(
       
   414             const TDesC8& aUuid,
       
   415             TInt aSessionId,
       
   416             TInt aErr,
       
   417             const TDesC8& aTransferId );
       
   418 
       
   419         /**
       
   420          * See upnpavcontrolpointobserver.h
       
   421          */         
       
   422         virtual void CdsCTransferProgressResponse(
       
   423             const TDesC8& aUuid,
       
   424             TInt aSessionId,
       
   425             TInt aErr,
       
   426             const TDesC8& aTransferId,
       
   427             const TDesC8& aTransferStatus,
       
   428             const TDesC8& aTransferLength,            
       
   429             const TDesC8& aTransferTotal );
       
   430 
       
   431         /**
       
   432          * See upnpavcontrolpointobserver.h
       
   433          */ 
       
   434         virtual void CdsDeleteResourceResponse(
       
   435             const TDesC8& aUuid,
       
   436             TInt aSessionId,
       
   437             TInt aErr,
       
   438             const TDesC8& aResourceUri );
       
   439 
       
   440         /**
       
   441          * See upnpavcontrolpointobserver.h
       
   442          */ 
       
   443         virtual void CdsCreateReferenceResponse(
       
   444             const TDesC8& aUuid,
       
   445             TInt aSessionId,
       
   446             TInt aErr,
       
   447             const TDesC8& aContainerId, 
       
   448             const TDesC8& aObjectId, 
       
   449             const TDesC8& aNewId );
       
   450 
       
   451         /**
       
   452          * See upnpavcontrolpointobserver.h
       
   453          */ 
       
   454         virtual void CdsCreateObjectResponse(
       
   455             const TDesC8& aUuid,
       
   456             TInt aSessionId,
       
   457             TInt aErr,
       
   458             const TDesC8& aContainerID, 
       
   459             const TDesC8& aElements, 
       
   460             const TDesC8& aObjectID, 
       
   461             const TDesC8& aResult );
       
   462 
       
   463         /**
       
   464          * See upnpavcontrolpointobserver.h
       
   465          */ 
       
   466         virtual void CmProtocolInfoResponse(
       
   467             const TDesC8& aUuid,
       
   468             TInt aSessionId,
       
   469             TInt aErr,
       
   470             const TDesC8& aSource, 
       
   471             const TDesC8& aSink );
       
   472 
       
   473         /**
       
   474          * See upnpavcontrolpointobserver.h
       
   475          */        
       
   476         virtual void CmPrepareResponse(
       
   477             const TDesC8& aUuid,
       
   478             TInt aSessionId,
       
   479             TInt aErr,
       
   480             const TDesC8& aRemoteProtocolInfo,
       
   481             const TDesC8& aPeerConnectionManager,
       
   482             const TDesC8& aPeerConnectionId,
       
   483             const TDesC8& aDirection,
       
   484             TInt aConnection,
       
   485             TInt aTransport,
       
   486             TInt aRsc );
       
   487 
       
   488         /**
       
   489          * See upnpavcontrolpointobserver.h
       
   490          */        
       
   491         virtual void CmComplete(
       
   492             const TDesC8& aUuid,
       
   493             TInt aSessionId,
       
   494             TInt aErr,
       
   495             TInt aConnection );
       
   496 
       
   497         /**
       
   498          * See upnpavcontrolpointobserver.h
       
   499          */         
       
   500         virtual void CmCurrentConnections(
       
   501             const TDesC8& aUuid,
       
   502             TInt aSessionId,
       
   503             TInt aErr,
       
   504             const TDesC8& aConnections);
       
   505 
       
   506         /**
       
   507          * See upnpavcontrolpointobserver.h
       
   508          */   
       
   509         virtual void CmCurrentInfo(
       
   510             const TDesC8& aUuid,
       
   511             TInt aSessionId,
       
   512             TInt aErr,
       
   513             TInt rscId, 
       
   514             TInt transportId, 
       
   515             const TDesC8& aProtocolInfo,
       
   516             const TDesC8& aPeerConnectionManager, 
       
   517             TInt peerId, 
       
   518             const TDesC8& aDirection, 
       
   519             const TDesC8& aStatus );
       
   520 
       
   521         /**
       
   522          * See upnpavcontrolpointobserver.h
       
   523          */
       
   524         virtual void CdsUpdateEvent(
       
   525                 const TDesC8& aUuid,
       
   526                 TInt aSystemUpdateId
       
   527                 );
       
   528 
       
   529         /**
       
   530          * See upnpavcontrolpointobserver.h
       
   531          */
       
   532         virtual void CdsContainerEvent(
       
   533                 const TDesC8& aUuid,
       
   534                 const TDesC8& aConteinerIds
       
   535                 );
       
   536 
       
   537         /**
       
   538          * See upnpavcontrolpointobserver.h
       
   539          */
       
   540         virtual void CdsTransferEvent(
       
   541                 const TDesC8& aUuid,
       
   542                 const TDesC8& aTransferIds
       
   543                 );
       
   544 
       
   545         /**
       
   546          * See upnpavcontrolpointobserver.h
       
   547          */
       
   548         virtual void RcLastChangeEvent(
       
   549                 const TDesC8& aUuid,
       
   550                 const TDesC8& aLastChange
       
   551                 );
       
   552 
       
   553         /**
       
   554          * See upnpavcontrolpointobserver.h
       
   555          */
       
   556         virtual void AvtLastChangeEvent(
       
   557                 const TDesC8& aUuid,
       
   558                 const TDesC8& aLastChange
       
   559                 );
       
   560 
       
   561         /**
       
   562          * See upnpavcontrolpointobserver.h
       
   563          */
       
   564         virtual void CmSourceEvent(
       
   565                 const TDesC8& aUuid,
       
   566                 const TDesC8& aSource
       
   567                 );
       
   568 
       
   569         /**
       
   570          * See upnpavcontrolpointobserver.h
       
   571          */
       
   572         virtual void CmSinkEvent(
       
   573                 const TDesC8& aUuid,
       
   574                 const TDesC8& aSink
       
   575                 );
       
   576 
       
   577         /**
       
   578          * See upnpavcontrolpointobserver.h
       
   579          */
       
   580         virtual void CmConnectionsEvent(
       
   581                 const TDesC8& aUuid,
       
   582                 const TDesC8& aConnections
       
   583                 );
       
   584         //*****************************************************************
       
   585         // Device and http functions.
       
   586         //*****************************************************************
       
   587         /**
       
   588          * See upnpavcontrolpointobserver.h
       
   589          */
       
   590         virtual void HttpResponseL(CUpnpHttpMessage* aMessage);
       
   591 
       
   592         /**
       
   593          * See upnpavcontrolpointobserver.h
       
   594          */
       
   595         virtual void DeviceDiscoveredL(CUpnpDevice* aDevice);
       
   596 
       
   597         /**
       
   598          * See upnpavcontrolpointobserver.h
       
   599          */
       
   600         virtual void DeviceDisappearedL(CUpnpDevice* aDevice);
       
   601     };
       
   602 
       
   603 #endif      // CMMDHAVCPADAPTER   
       
   604             
       
   605 // End of File