phonebookui/Phonebook2/inc/CPbk2RingingToneFetch.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2005-2007 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:  Provides methods for fetching ringing tones into Phonebook.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPBK2RINGINGTONEFETCH_H
       
    20 #define CPBK2RINGINGTONEFETCH_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>  // CBase
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CMediaFileList;
       
    27 
       
    28 // CLASS DECLARATION
       
    29 /**
       
    30  * @internal Only Phonebook internal use supported!
       
    31  *
       
    32  * Class for Fetching ringing tones to phonebook.
       
    33  */
       
    34 NONSHARABLE_CLASS(CPbk2RingingToneFetch) :
       
    35         public CBase
       
    36     {
       
    37     public: // constructor & destructor
       
    38         /**
       
    39          * Creates a new instance of this class.
       
    40          * @return A new instance of this class.
       
    41          */
       
    42         IMPORT_C static CPbk2RingingToneFetch* NewL();
       
    43 
       
    44         /**
       
    45          * Destructor.
       
    46          */
       
    47         ~CPbk2RingingToneFetch();
       
    48 
       
    49     public: // interface
       
    50         /**
       
    51          * Fetch ringing tone.
       
    52          * @param aRingingToneFile the selected filename will be stored here,
       
    53          *        It will be set empty, if user selects default ringtone.
       
    54          * @return ETrue if user selected a file, EFalse otherwise
       
    55          */
       
    56     	IMPORT_C TBool FetchRingingToneL(
       
    57             TFileName& aRingingToneFile );
       
    58 
       
    59     private: // implementation
       
    60         CPbk2RingingToneFetch();
       
    61         void ConstructL();
       
    62         void SetMaxToneFileSizeL( CMediaFileList* aFl );
       
    63 
       
    64     private: // data members
       
    65         /// Own: prompt text for ringing tone popup list
       
    66         HBufC* iTitle;
       
    67         /// Own: text for emptying the ringing tone
       
    68         HBufC* iNoSound;
       
    69     };
       
    70 
       
    71 #endif // CPBK2RINGINGTONEFETCH_H
       
    72 
       
    73 //  End of File