phoneapp/phoneuiutils/src/tphonecmdparamglobalnote.cpp
changeset 76 cfea66083b62
parent 53 22cc52eade9b
equal deleted inserted replaced
74:d1c62c765e48 76:cfea66083b62
    34     iType( EPhoneNotificationDialog ),
    34     iType( EPhoneNotificationDialog ),
    35     iTextResourceId( 0 ),
    35     iTextResourceId( 0 ),
    36     iText( KNullDesC ),
    36     iText( KNullDesC ),
    37     iTimeout( 0 ),
    37     iTimeout( 0 ),
    38     iNotificationDialog( EFalse ),
    38     iNotificationDialog( EFalse ),
    39     iCauseCode( KErrNotFound ) 
    39     iCauseCode( KErrNotFound ),
       
    40     iToneType( EPhoneNoTone )
    40     {
    41     {
    41     iParamId = EPhoneParamIdGlobalNote;
    42     iParamId = EPhoneParamIdGlobalNote;
    42     }
    43     }
    43 
    44 
    44 // ---------------------------------------------------------
    45 // ---------------------------------------------------------
    45 // TPhoneCmdParamGlobalNote::SetType
    46 // TPhoneCmdParamGlobalNote::SetType
    46 // Sets the global note type
    47 // Sets the global note type
    47 // (other items were commented in a header).
    48 // (other items were commented in a header).
    48 // ---------------------------------------------------------
    49 // ---------------------------------------------------------
    49 //
    50 //
    50 EXPORT_C void TPhoneCmdParamGlobalNote::SetType( /*TAknGlobalNoteType*/ PhoneNotificationType aType )
    51 EXPORT_C void TPhoneCmdParamGlobalNote::SetType( /*TAknGlobalNoteType*/ TPhoneNotificationType aType )
    51    {
    52    {
    52    iType = aType;   
    53    iType = aType;   
    53    }
    54    }
    54 
    55 
    55 // ---------------------------------------------------------
    56 // ---------------------------------------------------------
    83 // Sets the timeout value for a note.
    84 // Sets the timeout value for a note.
    84 // (other items were commented in a header).
    85 // (other items were commented in a header).
    85 // ---------------------------------------------------------
    86 // ---------------------------------------------------------
    86 //
    87 //
    87 EXPORT_C void TPhoneCmdParamGlobalNote::SetTimeout( TInt aTimeout )
    88 EXPORT_C void TPhoneCmdParamGlobalNote::SetTimeout( TInt aTimeout )
    88 {
    89     {
    89     iTimeout = aTimeout;
    90     iTimeout = aTimeout;
    90 }
    91     }
    91 
    92 
    92 // ---------------------------------------------------------
    93 // ---------------------------------------------------------
    93 // TPhoneCmdParamGlobalNote::SetNotificationDialog
    94 // TPhoneCmdParamGlobalNote::SetNotificationDialog
    94 // Sets the notification dialog flag.
    95 // Sets the notification dialog flag.
    95 // (other items were commented in a header).
    96 // (other items were commented in a header).
    96 // ---------------------------------------------------------
    97 // ---------------------------------------------------------
    97 //
    98 //
    98 EXPORT_C void TPhoneCmdParamGlobalNote::SetNotificationDialog( 
    99 EXPORT_C void TPhoneCmdParamGlobalNote::SetNotificationDialog( 
    99         TBool aNotificationDialog )
   100         TBool aNotificationDialog )
   100 {
   101     {
   101     iNotificationDialog = aNotificationDialog;
   102     iNotificationDialog = aNotificationDialog;
   102 }
   103     }
   103 
   104 
   104 // ---------------------------------------------------------
   105 // ---------------------------------------------------------
   105 // TPhoneCmdParamGlobalNote::SetCauseCode
   106 // TPhoneCmdParamGlobalNote::SetCauseCode
   106 // Sets the cause code.
   107 // Sets the cause code.
   107 // (other items were commented in a header).
   108 // (other items were commented in a header).
   108 // ---------------------------------------------------------
   109 // ---------------------------------------------------------
   109 //
   110 //
   110 EXPORT_C void TPhoneCmdParamGlobalNote::SetCauseCode( 
   111 EXPORT_C void TPhoneCmdParamGlobalNote::SetCauseCode( 
   111         TInt aCauseCode )
   112         TInt aCauseCode )
   112 {
   113     {
   113     iCauseCode = aCauseCode;
   114     iCauseCode = aCauseCode;
   114 }
   115     }
       
   116 
       
   117 // ---------------------------------------------------------
       
   118 // TPhoneCmdParamGlobalNote::SetToneType
       
   119 // Sets the tone type.
       
   120 // (other items were commented in a header).
       
   121 // ---------------------------------------------------------
       
   122 //
       
   123 EXPORT_C void TPhoneCmdParamGlobalNote::SetToneType( 
       
   124    TPhoneNotificationToneType aToneType )
       
   125     {
       
   126     iToneType = aToneType;
       
   127     }
       
   128             
       
   129 // ---------------------------------------------------------
       
   130 // TPhoneCmdParamGlobalNote::ToneType
       
   131 // Returns the tone type.
       
   132 // (other items were commented in a header).
       
   133 // ---------------------------------------------------------
       
   134 //
       
   135 EXPORT_C TPhoneNotificationToneType TPhoneCmdParamGlobalNote::ToneType() const
       
   136     {
       
   137     return iToneType;
       
   138     }
   115 
   139 
   116 // ---------------------------------------------------------
   140 // ---------------------------------------------------------
   117 // TPhoneCmdParamGlobalNote::Type
   141 // TPhoneCmdParamGlobalNote::Type
   118 // Returns the global note type
   142 // Returns the global note type
   119 // (other items were commented in a header).
   143 // (other items were commented in a header).
   120 // ---------------------------------------------------------
   144 // ---------------------------------------------------------
   121 //
   145 //
   122 EXPORT_C /*TAknGlobalNoteType*/ PhoneNotificationType TPhoneCmdParamGlobalNote::Type() const
   146 EXPORT_C /*TAknGlobalNoteType*/ TPhoneNotificationType TPhoneCmdParamGlobalNote::Type() const
   123    {
   147    {
   124    return iType;
   148    return iType;
   125    }
   149    }
   126 
   150 
   127 // ---------------------------------------------------------
   151 // ---------------------------------------------------------