vtprotocolplugins/VideoSource/inc/CVSControllerImp.h
changeset 0 ed9695c8bcbe
equal deleted inserted replaced
-1:000000000000 0:ed9695c8bcbe
       
     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:  Video Source subsystem.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CVSCONTROLLERIMP_H
       
    20 #define CVSCONTROLLERIMP_H
       
    21 
       
    22 // INCLUDE FILES
       
    23 #include "CApiVideoSource.h"
       
    24 
       
    25 // CLASS DECLARATIONS
       
    26 
       
    27 /**
       
    28 *  Internal implementation of controller. This class is inherited from
       
    29 *  public controller interface.
       
    30 *
       
    31 *  @lib videosource.lib
       
    32 */
       
    33 class CVSControllerImp : public CVSController
       
    34     {
       
    35     public: // Constructors and destructor
       
    36 
       
    37         /**
       
    38         * Static factory function to create controller instance.
       
    39         * @exception Can leave with one of the system wide error codes.
       
    40         * @return Pointer to new controller instance.
       
    41         */
       
    42         static CVSControllerImp* NewL();
       
    43 
       
    44         /**
       
    45         * Destructor.
       
    46         */
       
    47         ~CVSControllerImp();
       
    48 
       
    49     public: // New functions
       
    50 
       
    51     public: // Functions from base classes
       
    52 
       
    53         /**
       
    54         * Create data source instance.
       
    55         * @param "aObserver" Pointer to data source observer.
       
    56         * @exception Can leave with one of the system wide error codes.
       
    57         * @return Pointer to new data source instance.
       
    58         */
       
    59         virtual CVSDataSource* CreateDataSourceL( 
       
    60             MVSDataSourceObserver* aObserver );
       
    61 
       
    62         /**
       
    63         * Return provider count and provider index.
       
    64         * @return Number of providers available. Count also acts as zero 
       
    65         * based provider index.
       
    66         */
       
    67         virtual TInt ProvidersAvailable();
       
    68 
       
    69         /**
       
    70         * Return provider information.
       
    71         * @param "aProviderIndex" Index of the provider to return information 
       
    72         * for.
       
    73         * @param "aInfo" Reference to the variable where the provider 
       
    74         * information is copied.
       
    75         * @exception Can leave with one of the system wide error codes.
       
    76         */
       
    77         virtual void ProviderInfoL( 
       
    78             TInt aProviderIndex, 
       
    79             TVSDataProviderInfo& aInfo );
       
    80 
       
    81         /**
       
    82         * Create provider instance.
       
    83         * @param "aProviderIndex" Index of the provider to be created.
       
    84         * @param "aObserver" Pointer to provider observer.
       
    85         * @exception Can leave with one of the system wide error codes.
       
    86         * @return Pointer to new provider instance.
       
    87         */
       
    88         virtual CVSDataProvider* CreateDataProviderL( 
       
    89             TInt aProviderIndex, 
       
    90             MVSDataProviderObserver* aObserver, 
       
    91             MVSBufferPool* aPool );
       
    92 
       
    93     protected:  // New functions
       
    94 
       
    95     protected:  // Functions from base classes
       
    96 
       
    97     private:    // Constructors and destructor
       
    98 
       
    99         /**
       
   100         * 2nd phase constructor.
       
   101         * @param "aObserver" Pointer to controller observer
       
   102         * @exception Can leave with one of the system wide error codes.
       
   103         */
       
   104         void ConstructL( MVSControllerObserver* aObserver );
       
   105 
       
   106     private:    // New functions
       
   107 
       
   108     private:    // Functions from base classes
       
   109 
       
   110     public: // Data
       
   111 
       
   112     protected:  // Data
       
   113 
       
   114     private:    // Data
       
   115 
       
   116     };
       
   117 
       
   118 #endif      // CVSCONTROLLERIMP_H  
       
   119             
       
   120 // End of File