phoneapp/phoneuiutils/src/tphonecmdparamglobalnote.cpp
branchRCL_3
changeset 62 5266b1f337bd
parent 61 41a7f70b3818
equal deleted inserted replaced
61:41a7f70b3818 62:5266b1f337bd
    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( EPhoneNotificationDialog ),
    34     iType( EAknGlobalErrorNote ),
    35     iTextResourceId( 0 ),
    35     iTextResourceId( 0 ),
    36     iText( KNullDesC ),
    36     iText( KNullDesC ),
    37     iTimeout( 0 ),
    37     iTone( EAvkonSIDErrorTone ),
    38     iNotificationDialog( EFalse ),
    38     iWaitforReady ( EFalse )
    39     iCauseCode( KErrNotFound ) 
    39     ,iSoftkeys( 0 )
    40     {
    40     {
    41     iParamId = EPhoneParamIdGlobalNote;
    41     iParamId = EPhoneParamIdGlobalNote;
    42     }
    42     }
    43 
    43 
    44 // ---------------------------------------------------------
    44 // ---------------------------------------------------------
    45 // TPhoneCmdParamGlobalNote::SetType
    45 // TPhoneCmdParamGlobalNote::SetType
    46 // Sets the global note type
    46 // Sets the global note type
    47 // (other items were commented in a header).
    47 // (other items were commented in a header).
    48 // ---------------------------------------------------------
    48 // ---------------------------------------------------------
    49 //
    49 //
    50 EXPORT_C void TPhoneCmdParamGlobalNote::SetType( /*TAknGlobalNoteType*/ PhoneNotificationType aType )
    50 EXPORT_C void TPhoneCmdParamGlobalNote::SetType( TAknGlobalNoteType aType )
    51    {
    51    {
    52    iType = aType;   
    52    iType = aType;   
    53    }
    53    }
    54 
    54 
    55 // ---------------------------------------------------------
    55 // ---------------------------------------------------------
    60 //
    60 //
    61 EXPORT_C void TPhoneCmdParamGlobalNote::SetTextResourceId( 
    61 EXPORT_C void TPhoneCmdParamGlobalNote::SetTextResourceId( 
    62    TInt aTextResourceId )
    62    TInt aTextResourceId )
    63    {
    63    {
    64     __ASSERT_DEBUG( aTextResourceId, 
    64     __ASSERT_DEBUG( aTextResourceId, 
    65         Panic( EPhoneUtilsParameterNotInitialized ) );
    65     	Panic( EPhoneUtilsParameterNotInitialized ) );
    66    iTextResourceId = aTextResourceId;   
    66    iTextResourceId = aTextResourceId;   
    67    }
    67    }
    68 
    68 
    69 // ---------------------------------------------------------
    69 // ---------------------------------------------------------
    70 // TPhoneCmdParamGlobalNote::SetText
    70 // TPhoneCmdParamGlobalNote::SetText
    77    {
    77    {
    78    iText.Set( aText );
    78    iText.Set( aText );
    79    }
    79    }
    80 
    80 
    81 // ---------------------------------------------------------
    81 // ---------------------------------------------------------
    82 // TPhoneCmdParamGlobalNote::SetTimeout
    82 // TPhoneCmdParamGlobalNote::SetTone
    83 // Sets the timeout value for a note.
    83 // Sets the global note tone
    84 // (other items were commented in a header).
    84 // (other items were commented in a header).
    85 // ---------------------------------------------------------
    85 // ---------------------------------------------------------
    86 //
    86 //
    87 EXPORT_C void TPhoneCmdParamGlobalNote::SetTimeout( TInt aTimeout )
    87 EXPORT_C void TPhoneCmdParamGlobalNote::SetTone( TInt aTone )
    88 {
    88    {
    89     iTimeout = aTimeout;
    89    iTone = aTone;   
    90 }
    90    }
    91 
    91 
    92 // ---------------------------------------------------------
    92 // ---------------------------------------------------------
    93 // TPhoneCmdParamGlobalNote::SetNotificationDialog
    93 // TPhoneCmdParamGlobalNote::SetWaitForReady
    94 // Sets the notification dialog flag.
    94 // Sets the note to wait for completed
    95 // (other items were commented in a header).
    95 // (other items were commented in a header).
    96 // ---------------------------------------------------------
    96 // ---------------------------------------------------------
    97 //
    97 //
    98 EXPORT_C void TPhoneCmdParamGlobalNote::SetNotificationDialog( 
    98 EXPORT_C void TPhoneCmdParamGlobalNote::SetWaitForReady( TBool aStatus )
    99         TBool aNotificationDialog )
    99    {
   100 {
   100    iWaitforReady = aStatus;   
   101     iNotificationDialog = aNotificationDialog;
   101    }
   102 }
       
   103 
   102 
   104 // ---------------------------------------------------------
   103 // ---------------------------------------------------------
   105 // TPhoneCmdParamGlobalNote::SetCauseCode
   104 // TPhoneCmdParamGlobalNote::SetSoftkeys
   106 // Sets the cause code.
   105 // Sets the global note softkeys
   107 // (other items were commented in a header).
   106 // (other items were commented in a header).
   108 // ---------------------------------------------------------
   107 // ---------------------------------------------------------
   109 //
   108 //
   110 EXPORT_C void TPhoneCmdParamGlobalNote::SetCauseCode( 
   109 EXPORT_C void TPhoneCmdParamGlobalNote::SetSoftkeys( TInt aSoftkeys )
   111         TInt aCauseCode )
   110    {
   112 {
   111    iSoftkeys = aSoftkeys;   
   113     iCauseCode = aCauseCode;
   112    }
   114 }
       
   115 
   113 
   116 // ---------------------------------------------------------
   114 // ---------------------------------------------------------
   117 // TPhoneCmdParamGlobalNote::Type
   115 // TPhoneCmdParamGlobalNote::Type
   118 // Returns the global note type
   116 // Returns the global note type
   119 // (other items were commented in a header).
   117 // (other items were commented in a header).
   120 // ---------------------------------------------------------
   118 // ---------------------------------------------------------
   121 //
   119 //
   122 EXPORT_C /*TAknGlobalNoteType*/ PhoneNotificationType TPhoneCmdParamGlobalNote::Type() const
   120 EXPORT_C TAknGlobalNoteType TPhoneCmdParamGlobalNote::Type() const
   123    {
   121    {
   124    return iType;
   122    return iType;
   125    }
   123    }
   126 
   124 
   127 // ---------------------------------------------------------
   125 // ---------------------------------------------------------
   145    {
   143    {
   146    return iText;
   144    return iText;
   147    }
   145    }
   148 
   146 
   149 // ---------------------------------------------------------
   147 // ---------------------------------------------------------
   150 // TPhoneCmdParamGlobalNote::Timeout
   148 // TPhoneCmdParamGlobalNote::Tone
   151 // Returns the timeout value.
   149 // Returns the note tone
       
   150 // (other items were commented in a header).
   152 // ---------------------------------------------------------
   151 // ---------------------------------------------------------
   153 //
   152 //
   154 EXPORT_C TInt TPhoneCmdParamGlobalNote::Timeout() const
   153 EXPORT_C TInt TPhoneCmdParamGlobalNote::Tone() const
   155     {
   154    {
   156     return iTimeout;
   155    return iTone;
   157     }
   156    }
   158 
   157 
   159 // ---------------------------------------------------------
   158 // ---------------------------------------------------------
   160 // TPhoneCmdParamGlobalNote::NotificationDialog
   159 // TPhoneCmdParamGlobalNote::WaitForReady
   161 // Returns the notification dialog flag.
   160 // Returns the status of wait for completed
       
   161 // (other items were commented in a header).
   162 // ---------------------------------------------------------
   162 // ---------------------------------------------------------
   163 //
   163 //
   164 EXPORT_C TBool TPhoneCmdParamGlobalNote::NotificationDialog() const
   164 EXPORT_C TBool TPhoneCmdParamGlobalNote::WaitForReady() const
   165     {
   165    {
   166     return iNotificationDialog;
   166    return iWaitforReady;
   167     }
   167    }
   168 
   168    
   169 // ---------------------------------------------------------
   169 // ---------------------------------------------------------
   170 // TPhoneCmdParamGlobalNote::CauseCode
   170 // TPhoneCmdParamGlobalNote::Softkeys
   171 // Returns the cause code.
   171 // Returns the note softkeys
       
   172 // (other items were commented in a header).
   172 // ---------------------------------------------------------
   173 // ---------------------------------------------------------
   173 //
   174 //
   174 EXPORT_C TInt TPhoneCmdParamGlobalNote::CauseCode() const
   175 EXPORT_C TInt TPhoneCmdParamGlobalNote::Softkeys() const
   175     {
   176    {
   176     return iCauseCode;
   177    return iSoftkeys;
   177     }
   178    }
   178 
   179 
   179 //  End of File  
   180 //  End of File