idlefw/tsrc/devicestatusplugin/stub/src/profileengine.h
branchRCL_3
changeset 111 053c6c7c14f3
equal deleted inserted replaced
110:2c7f27287390 111:053c6c7c14f3
       
     1 /*
       
     2 * Copyright (c) 2005 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:  ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_PROFILECHANGENOTIFYHANDLERSTUB_H
       
    20 #define C_PROFILECHANGENOTIFYHANDLERSTUB_H
       
    21 
       
    22 
       
    23 #include <e32base.h>
       
    24 #include <mprofileengine.h>
       
    25 #include <mprofile.h>
       
    26 
       
    27 
       
    28 class CProfile : public CBase, public MProfile
       
    29     {
       
    30         ~CProfile();
       
    31 public:
       
    32         virtual void Release();
       
    33         virtual const TArray<TContactItemId> AlertForL();
       
    34         virtual TBool IsSilent() const;
       
    35         virtual const MProfileName& ProfileName() const;
       
    36         virtual const MProfileTones& ProfileTones() const;
       
    37         virtual const MProfileExtraTones& ProfileExtraTones() const;
       
    38         virtual const MProfileExtraSettings& ProfileExtraSettings() const;
       
    39     };
       
    40 /**
       
    41  *  ?one_line_short_description
       
    42  *
       
    43  *  ?more_complete_description
       
    44  *
       
    45  *  @lib ?library
       
    46  *  @since S60 ?S60_version *** for example, S60 v3.0
       
    47  */
       
    48 class CProfileEngine : public CBase, public MProfileEngine
       
    49     {
       
    50 public:
       
    51 
       
    52     static CProfileEngine* NewL();
       
    53 
       
    54     static CProfileEngine* NewLC();
       
    55 
       
    56     virtual ~CProfileEngine();
       
    57 
       
    58     void Release();
       
    59     MProfile* ActiveProfileLC();
       
    60     MProfile* ActiveProfileL();
       
    61     TInt ActiveProfileId();
       
    62     MProfilesNamesArray* ProfilesNamesArrayLC();
       
    63     void SetActiveProfileL( TInt aId );
       
    64     void SetTempRingingVolumeL( TProfileRingingVolume aVolume );
       
    65     TProfileRingingVolume TempRingingVolumeL() const;
       
    66     void SetTempMediaVolumeL( TProfileRingingVolume aVolume );
       
    67     TProfileRingingVolume TempMediaVolumeL() const;
       
    68     TBool IsFeatureSupported( TProfileFeatureId aFeatureId ) const;
       
    69     TBool IsActiveProfileTimedL();
       
    70 
       
    71 private:
       
    72 
       
    73     CProfileEngine();
       
    74 
       
    75     void ConstructL();
       
    76 
       
    77 private: // data
       
    78     };
       
    79 
       
    80 
       
    81 #endif // C_PROFILECHANGENOTIFYHANDLERSTUB_H