upnpavcontroller/upnpavcontrollerclient/inc/upnpavcontrollerfactory.h
changeset 0 7f85d04be362
child 38 5360b7ddc251
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:      Abstract factory for UPnP AV Controller
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 #ifndef C_UPNPAVCONTROLLERFACTORY_H
       
    25 #define C_UPNPAVCONTROLLERFACTORY_H
       
    26 
       
    27 #include <e32std.h>
       
    28 
       
    29 class MUPnPAVController;
       
    30 
       
    31 /**
       
    32  *  Abstract factory for UPnP AV Controller
       
    33  *
       
    34  *  Abstract factory for UPnP AV Controller. Exports methods to instantiate
       
    35  *  the AV Controller.
       
    36  *
       
    37  *  @lib upnpavcontrollerclient.lib
       
    38  *  @since S60 v3.1
       
    39  */
       
    40 class UPnPAVControllerFactory
       
    41     {
       
    42 
       
    43 public:
       
    44 
       
    45     enum TAVControllerServerStatus
       
    46         {
       
    47         EStatusOffline = 0,
       
    48         EStatusActive
       
    49         };
       
    50 
       
    51 public:
       
    52 
       
    53     /**
       
    54      * Creates a new instance of AV Controller
       
    55      *
       
    56      * @return instance of AV Controller
       
    57      */
       
    58     IMPORT_C static MUPnPAVController* NewUPnPAVControllerL();
       
    59 
       
    60     /**
       
    61      * Creates a new instance of AV Controller. Instance is left in
       
    62      * cleanup stack.
       
    63      *
       
    64      * @return instance of AV Controller
       
    65      */
       
    66     IMPORT_C static MUPnPAVController* NewUPnPAVControllerLC();
       
    67 
       
    68     /**
       
    69      * Return ETrue is some application is using the local Media Server
       
    70      * services via AV Controller server.
       
    71      *
       
    72      * @return EFalse/ETrue
       
    73      */
       
    74     IMPORT_C static TBool MSServicesInUse();
       
    75 
       
    76     /**
       
    77      * Returns the operational state of AV Controller Server
       
    78      *
       
    79      * @param aStatus operational state
       
    80      * @return system wide error code
       
    81      */
       
    82     IMPORT_C static TInt Status( TAVControllerServerStatus& aStatus );
       
    83     };
       
    84 
       
    85 #endif // ? C_UPNPAVCONTROLLERFACTORY_H