vtuis/videotelui/inc/TVtUiCallParameters.h
changeset 0 ed9695c8bcbe
equal deleted inserted replaced
-1:000000000000 0:ed9695c8bcbe
       
     1 /*
       
     2 * Copyright (c) 2004 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:  Call parameters class for Video Telephone application.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef TVTUICALLPARAMETERS_H
       
    21 #define TVTUICALLPARAMETERS_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include    <e32base.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  Call parameters for Video Telephone application.
       
    30 *
       
    31 *  @since Series 60 2.6
       
    32 */
       
    33 class TVtUiCallParameters
       
    34     {
       
    35     public: // Constructors and destructor
       
    36         
       
    37         /**
       
    38         * C++ constructor.
       
    39         */
       
    40         TVtUiCallParameters();
       
    41 
       
    42     public: // New functions
       
    43 
       
    44         /**
       
    45         * Resets parameters.
       
    46         */
       
    47         void Reset();
       
    48 
       
    49         /**
       
    50         * Sets audio status.
       
    51         * @param aEnabled ETrue if audio enabled, EFalse if disabled.
       
    52         */
       
    53         void SetAudioStatus( const TBool aEnabled );
       
    54 
       
    55         /**
       
    56         * Gets audio status.
       
    57         * @param aEnabled It will equal to ETrue if audio enabled, 
       
    58         *        EFalse if disabled.
       
    59         * @return error code, 
       
    60         *         KErrNone if audio status has been set,
       
    61         *         KErrNotFound if not.
       
    62         */
       
    63         TInt GetAudioStatus( TBool& aEnabled ) const;
       
    64 
       
    65         /**
       
    66         * Sets video status.
       
    67         * @param aEnabled enabled status.
       
    68         */
       
    69         void SetVideoStatus( const TBool aEnabled );
       
    70 
       
    71         /**
       
    72         * Gets video status.
       
    73         * @param aEnabled It will equal to ETrue if video enabled, 
       
    74         *        EFalse if disabled.
       
    75         * @return error code, 
       
    76         *         KErrNone if video status has been set,
       
    77         *         KErrNotFound if not.
       
    78         */
       
    79         TInt GetVideoStatus( TBool& aEnabled );
       
    80 
       
    81         /**
       
    82         * Sets selected camera.
       
    83         * @param aPrimary ETrue if primary, EFalse if secondary.
       
    84         */
       
    85         void SetSelectedCamera( const TBool aPrimary );
       
    86 
       
    87         /**
       
    88         * Gets selected camera.
       
    89         * @param aPrimary It will equal to ETrue if primary has been selected,
       
    90         *        EFalse if secondary.
       
    91         * @return error code,
       
    92         *         KErrNone if selected camera has been set,
       
    93         *         KErrNotFound if not.
       
    94         */
       
    95         TInt GetSelectedCamera( TBool& aPrimary );
       
    96 
       
    97     private:
       
    98 
       
    99         // Current flags.
       
   100         TInt iFlags;
       
   101 
       
   102     };
       
   103 
       
   104 #endif      // TVTUICALLPARAMETERS_H   
       
   105             
       
   106 // End of File