upnpavcontroller/upnpavcontrollerserver/inc/upnpavactioninfo.h
changeset 0 7f85d04be362
equal deleted inserted replaced
-1:000000000000 0:7f85d04be362
       
     1 /*
       
     2 * Copyright (c) 2006 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:      callback dispatcher helper class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #ifndef C_CUPNPAVACTIONINFO_H
       
    24 #define C_CUPNPAVACTIONINFO_H
       
    25 
       
    26 
       
    27 #include <e32base.h>
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class MUpnpAVControlPointObserver;
       
    31 class CUPnPAVControllerImpl;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36 *  UPnP AV Controller server, callback dispatcher helper class
       
    37 *  
       
    38 *
       
    39 *  @lib - 
       
    40 *  @since Series 60 3.1
       
    41 */
       
    42 class CUPnPAVActionInfo : public CBase
       
    43     {
       
    44 public:  // Constructors and destructor
       
    45         
       
    46     /**
       
    47      * Two-phased constructor.
       
    48      */
       
    49     static CUPnPAVActionInfo* NewLC();
       
    50     
       
    51     /**
       
    52      * Two-phased constructor.
       
    53      */
       
    54     static CUPnPAVActionInfo* NewL();    
       
    55 
       
    56     /**
       
    57      * Destructor.
       
    58      */
       
    59     virtual ~CUPnPAVActionInfo();
       
    60 
       
    61 private: //
       
    62 
       
    63     /**
       
    64      * Constructs the action info
       
    65      */
       
    66     CUPnPAVActionInfo( );
       
    67 
       
    68     /**
       
    69      * Perform the second phase construction
       
    70      */
       
    71     void ConstructL();
       
    72 
       
    73 public: // New methods
       
    74 
       
    75     /**
       
    76      * Sets session id
       
    77      * @param aSessionid session id
       
    78      */
       
    79     void SetSessionId( TInt aSessionId );
       
    80     
       
    81     /**
       
    82      * Returns session id
       
    83      * @return session id
       
    84      */
       
    85     TInt SessionId() const;
       
    86     
       
    87     /**
       
    88      * Sets AV Control Point observer
       
    89      * @param aObserver AV Control Point observer
       
    90      */
       
    91     void SetObserver( MUpnpAVControlPointObserver& aObserver );
       
    92     
       
    93     /**
       
    94      * Returns AV Control Point observer
       
    95      * @return AV Control Point observer
       
    96      */
       
    97     MUpnpAVControlPointObserver& Observer() const;
       
    98     
       
    99     /**
       
   100      * Sets Uuid
       
   101      * @param Uuid
       
   102      */
       
   103     void SetUuidL( const TDesC8& aUuid );
       
   104     
       
   105     /**
       
   106      * Returns Uuid
       
   107      * @return Uuid
       
   108      */
       
   109     const TDesC8& Uuid() const;
       
   110     
       
   111 private:
       
   112     
       
   113     TInt                            iSessionId;
       
   114     
       
   115     MUpnpAVControlPointObserver*    iObserver; // Not own
       
   116     
       
   117     HBufC8*                         iUuid; // Own
       
   118         
       
   119     };
       
   120 
       
   121 
       
   122 #endif // C_CUPNPAVACTIONINFO_H