diff -r f742655b05bf -r d38647835c2e voipplugins/ipapputils/inc/cipappphoneutils.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/voipplugins/ipapputils/inc/cipappphoneutils.h Wed Sep 01 12:29:57 2010 +0100 @@ -0,0 +1,103 @@ +/* +* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Utility class to phone functionality. +* +*/ + + +#ifndef C_IPAPPPHONEUTILS_H +#define C_IPAPPPHONEUTILS_H + +#include + +const TUint KSVPMaxTerminalTypeLength = 64; +const TUint KSVPPhoneModelLength = 20; + +class RFs; + +/** + * Utility class to phone functionality. + * + * @code + * TBuf terminalType; + * CIpAppPhoneUtils* phoneUtils = CIpAppPhoneUtils::NewL(); + * phoneUtils->GetTerminalTypeL( terminalType ); + * delete phoneUtils; + * @endcode + * + * @lib ipapputils.lib + * @since S60 v3.2 + */ +NONSHARABLE_CLASS( CIpAppPhoneUtils ) : public CBase + { + public: + + /** + * Two-phased constructor. + */ + IMPORT_C static CIpAppPhoneUtils* NewL(); + /** + * Two-phased constructor. + */ + IMPORT_C static CIpAppPhoneUtils* NewLC(); + + /** + * Destructor. + */ + IMPORT_C virtual ~CIpAppPhoneUtils(); + + /** + * Get the terminal type. + * @since Series60 5.0 + * @param aTerminalType terminal type + */ + IMPORT_C void GetTerminalTypeL( TDes& aTerminalType ) const; + + /** + * Get the terminal type. + * @since Series60 5.0 + * @param aTerminalType terminal type + * @param aFs file session + */ + IMPORT_C void GetTerminalTypeL( TDes& aTerminalType, RFs& aFs ) const; + + + /** + * Get the phone model. + * @since Series 60 3.2 + * @param aPhoneModel phone model. + */ + IMPORT_C void GetPhoneModelL( TDes& aPhoneModel ) const; + + /** + * Get the phone model. + * @since Series 60 3.2 + * @param aPhoneModel phone model. + * @param aFs file session + */ + IMPORT_C void GetPhoneModelL( TDes& aPhoneModel, RFs& aFs ) const; + + + private: + + /** + * C++ default constructor. + */ + CIpAppPhoneUtils(); + + private: // data + + }; + +#endif // C_IPAPPPHONEUTILS_H