phoneapp/phoneuiutils/src/tphonecmdparamglobalnote.cpp
changeset 56 5bcb308bd24d
parent 46 bc5a64e5bc3c
child 76 cfea66083b62
equal deleted inserted replaced
46:bc5a64e5bc3c 56:5bcb308bd24d
    29 // might leave.
    29 // might leave.
    30 // -----------------------------------------------------------------------------
    30 // -----------------------------------------------------------------------------
    31 //
    31 //
    32 EXPORT_C TPhoneCmdParamGlobalNote::TPhoneCmdParamGlobalNote():
    32 EXPORT_C TPhoneCmdParamGlobalNote::TPhoneCmdParamGlobalNote():
    33     TPhoneCommandParam(),
    33     TPhoneCommandParam(),
    34     iType( EAknGlobalErrorNote ),
    34     iType( EPhoneNotificationDialog ),
    35     iTextResourceId( 0 ),
    35     iTextResourceId( 0 ),
    36     iText( KNullDesC ),
    36     iText( KNullDesC ),
    37     iTone( EAvkonSIDErrorTone ),
       
    38     iWaitforReady ( EFalse ),
       
    39     iSoftkeys( 0 ),
       
    40     iTimeout( 0 ),
    37     iTimeout( 0 ),
    41     iNotificationDialog( EFalse ),
    38     iNotificationDialog( EFalse ),
    42     iCauseCode( KErrNotFound ) 
    39     iCauseCode( KErrNotFound ) 
    43     {
    40     {
    44     iParamId = EPhoneParamIdGlobalNote;
    41     iParamId = EPhoneParamIdGlobalNote;
    48 // TPhoneCmdParamGlobalNote::SetType
    45 // TPhoneCmdParamGlobalNote::SetType
    49 // Sets the global note type
    46 // Sets the global note type
    50 // (other items were commented in a header).
    47 // (other items were commented in a header).
    51 // ---------------------------------------------------------
    48 // ---------------------------------------------------------
    52 //
    49 //
    53 EXPORT_C void TPhoneCmdParamGlobalNote::SetType( TAknGlobalNoteType aType )
    50 EXPORT_C void TPhoneCmdParamGlobalNote::SetType( /*TAknGlobalNoteType*/ PhoneNotificationType aType )
    54    {
    51    {
    55    iType = aType;   
    52    iType = aType;   
    56    }
    53    }
    57 
    54 
    58 // ---------------------------------------------------------
    55 // ---------------------------------------------------------
    77 //
    74 //
    78 EXPORT_C void TPhoneCmdParamGlobalNote::SetText( 
    75 EXPORT_C void TPhoneCmdParamGlobalNote::SetText( 
    79    const TDesC& aText )
    76    const TDesC& aText )
    80    {
    77    {
    81    iText.Set( aText );
    78    iText.Set( aText );
    82    }
       
    83 
       
    84 // ---------------------------------------------------------
       
    85 // TPhoneCmdParamGlobalNote::SetTone
       
    86 // Sets the global note tone
       
    87 // (other items were commented in a header).
       
    88 // ---------------------------------------------------------
       
    89 //
       
    90 EXPORT_C void TPhoneCmdParamGlobalNote::SetTone( TInt aTone )
       
    91    {
       
    92    iTone = aTone;   
       
    93    }
       
    94 
       
    95 // ---------------------------------------------------------
       
    96 // TPhoneCmdParamGlobalNote::SetWaitForReady
       
    97 // Sets the note to wait for completed
       
    98 // (other items were commented in a header).
       
    99 // ---------------------------------------------------------
       
   100 //
       
   101 EXPORT_C void TPhoneCmdParamGlobalNote::SetWaitForReady( TBool aStatus )
       
   102    {
       
   103    iWaitforReady = aStatus;   
       
   104    }
       
   105 
       
   106 // ---------------------------------------------------------
       
   107 // TPhoneCmdParamGlobalNote::SetSoftkeys
       
   108 // Sets the global note softkeys
       
   109 // (other items were commented in a header).
       
   110 // ---------------------------------------------------------
       
   111 //
       
   112 EXPORT_C void TPhoneCmdParamGlobalNote::SetSoftkeys( TInt aSoftkeys )
       
   113    {
       
   114    iSoftkeys = aSoftkeys;   
       
   115    }
    79    }
   116 
    80 
   117 // ---------------------------------------------------------
    81 // ---------------------------------------------------------
   118 // TPhoneCmdParamGlobalNote::SetTimeout
    82 // TPhoneCmdParamGlobalNote::SetTimeout
   119 // Sets the timeout value for a note.
    83 // Sets the timeout value for a note.
   153 // TPhoneCmdParamGlobalNote::Type
   117 // TPhoneCmdParamGlobalNote::Type
   154 // Returns the global note type
   118 // Returns the global note type
   155 // (other items were commented in a header).
   119 // (other items were commented in a header).
   156 // ---------------------------------------------------------
   120 // ---------------------------------------------------------
   157 //
   121 //
   158 EXPORT_C TAknGlobalNoteType TPhoneCmdParamGlobalNote::Type() const
   122 EXPORT_C /*TAknGlobalNoteType*/ PhoneNotificationType TPhoneCmdParamGlobalNote::Type() const
   159    {
   123    {
   160    return iType;
   124    return iType;
   161    }
   125    }
   162 
   126 
   163 // ---------------------------------------------------------
   127 // ---------------------------------------------------------
   178 // ---------------------------------------------------------
   142 // ---------------------------------------------------------
   179 //
   143 //
   180 EXPORT_C const TDesC& TPhoneCmdParamGlobalNote::Text() const
   144 EXPORT_C const TDesC& TPhoneCmdParamGlobalNote::Text() const
   181    {
   145    {
   182    return iText;
   146    return iText;
   183    }
       
   184 
       
   185 // ---------------------------------------------------------
       
   186 // TPhoneCmdParamGlobalNote::Tone
       
   187 // Returns the note tone
       
   188 // (other items were commented in a header).
       
   189 // ---------------------------------------------------------
       
   190 //
       
   191 EXPORT_C TInt TPhoneCmdParamGlobalNote::Tone() const
       
   192    {
       
   193    return iTone;
       
   194    }
       
   195 
       
   196 // ---------------------------------------------------------
       
   197 // TPhoneCmdParamGlobalNote::WaitForReady
       
   198 // Returns the status of wait for completed
       
   199 // (other items were commented in a header).
       
   200 // ---------------------------------------------------------
       
   201 //
       
   202 EXPORT_C TBool TPhoneCmdParamGlobalNote::WaitForReady() const
       
   203    {
       
   204    return iWaitforReady;
       
   205    }
       
   206    
       
   207 // ---------------------------------------------------------
       
   208 // TPhoneCmdParamGlobalNote::Softkeys
       
   209 // Returns the note softkeys
       
   210 // (other items were commented in a header).
       
   211 // ---------------------------------------------------------
       
   212 //
       
   213 EXPORT_C TInt TPhoneCmdParamGlobalNote::Softkeys() const
       
   214    {
       
   215    return iSoftkeys;
       
   216    }
   147    }
   217 
   148 
   218 // ---------------------------------------------------------
   149 // ---------------------------------------------------------
   219 // TPhoneCmdParamGlobalNote::Timeout
   150 // TPhoneCmdParamGlobalNote::Timeout
   220 // Returns the timeout value.
   151 // Returns the timeout value.