phoneapp/phoneuiutils/src/tphonecmdparamglobalnote.cpp
changeset 0 5f000ab63145
child 21 92ab7f8d0eab
child 61 41a7f70b3818
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     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: Implementation of TPhoneCmdParamGlobalNote class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include <avkon.hrh>
       
    21 #include "tphonecmdparamglobalnote.h"
       
    22 #include "phoneui.pan" 
       
    23 
       
    24 // ================= MEMBER FUNCTIONS =======================
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // TPhoneCmdParamGlobalNote::TPhoneCmdParamGlobalNote
       
    28 // C++ default constructor can NOT contain any code, that
       
    29 // might leave.
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 EXPORT_C TPhoneCmdParamGlobalNote::TPhoneCmdParamGlobalNote():
       
    33     TPhoneCommandParam(),
       
    34     iType( EAknGlobalErrorNote ),
       
    35     iTextResourceId( 0 ),
       
    36     iText( KNullDesC ),
       
    37     iTone( EAvkonSIDErrorTone ),
       
    38     iWaitforReady ( EFalse )
       
    39     ,iSoftkeys( 0 )
       
    40     {
       
    41     iParamId = EPhoneParamIdGlobalNote;
       
    42     }
       
    43 
       
    44 // ---------------------------------------------------------
       
    45 // TPhoneCmdParamGlobalNote::SetType
       
    46 // Sets the global note type
       
    47 // (other items were commented in a header).
       
    48 // ---------------------------------------------------------
       
    49 //
       
    50 EXPORT_C void TPhoneCmdParamGlobalNote::SetType( TAknGlobalNoteType aType )
       
    51    {
       
    52    iType = aType;   
       
    53    }
       
    54 
       
    55 // ---------------------------------------------------------
       
    56 // TPhoneCmdParamGlobalNote::SetTextResourceId
       
    57 // Sets the global note resource ID
       
    58 // (other items were commented in a header).
       
    59 // ---------------------------------------------------------
       
    60 //
       
    61 EXPORT_C void TPhoneCmdParamGlobalNote::SetTextResourceId( 
       
    62    TInt aTextResourceId )
       
    63    {
       
    64     __ASSERT_DEBUG( aTextResourceId, 
       
    65     	Panic( EPhoneUtilsParameterNotInitialized ) );
       
    66    iTextResourceId = aTextResourceId;   
       
    67    }
       
    68 
       
    69 // ---------------------------------------------------------
       
    70 // TPhoneCmdParamGlobalNote::SetText
       
    71 // Sets the global note text
       
    72 // (other items were commented in a header).
       
    73 // ---------------------------------------------------------
       
    74 //
       
    75 EXPORT_C void TPhoneCmdParamGlobalNote::SetText( 
       
    76    const TDesC& aText )
       
    77    {
       
    78    iText.Set( aText );
       
    79    }
       
    80 
       
    81 // ---------------------------------------------------------
       
    82 // TPhoneCmdParamGlobalNote::SetTone
       
    83 // Sets the global note tone
       
    84 // (other items were commented in a header).
       
    85 // ---------------------------------------------------------
       
    86 //
       
    87 EXPORT_C void TPhoneCmdParamGlobalNote::SetTone( TInt aTone )
       
    88    {
       
    89    iTone = aTone;   
       
    90    }
       
    91 
       
    92 // ---------------------------------------------------------
       
    93 // TPhoneCmdParamGlobalNote::SetWaitForReady
       
    94 // Sets the note to wait for completed
       
    95 // (other items were commented in a header).
       
    96 // ---------------------------------------------------------
       
    97 //
       
    98 EXPORT_C void TPhoneCmdParamGlobalNote::SetWaitForReady( TBool aStatus )
       
    99    {
       
   100    iWaitforReady = aStatus;   
       
   101    }
       
   102 
       
   103 // ---------------------------------------------------------
       
   104 // TPhoneCmdParamGlobalNote::SetSoftkeys
       
   105 // Sets the global note softkeys
       
   106 // (other items were commented in a header).
       
   107 // ---------------------------------------------------------
       
   108 //
       
   109 EXPORT_C void TPhoneCmdParamGlobalNote::SetSoftkeys( TInt aSoftkeys )
       
   110    {
       
   111    iSoftkeys = aSoftkeys;   
       
   112    }
       
   113 
       
   114 // ---------------------------------------------------------
       
   115 // TPhoneCmdParamGlobalNote::Type
       
   116 // Returns the global note type
       
   117 // (other items were commented in a header).
       
   118 // ---------------------------------------------------------
       
   119 //
       
   120 EXPORT_C TAknGlobalNoteType TPhoneCmdParamGlobalNote::Type() const
       
   121    {
       
   122    return iType;
       
   123    }
       
   124 
       
   125 // ---------------------------------------------------------
       
   126 // TPhoneCmdParamGlobalNote::TextResourceId
       
   127 // Returns the global note text resource ID
       
   128 // (other items were commented in a header).
       
   129 // ---------------------------------------------------------
       
   130 //
       
   131 EXPORT_C TInt TPhoneCmdParamGlobalNote::TextResourceId() const
       
   132    {
       
   133    return iTextResourceId;
       
   134    }
       
   135 
       
   136 // ---------------------------------------------------------
       
   137 // TPhoneCmdParamGlobalNote::Text
       
   138 // Returns the global note text
       
   139 // (other items were commented in a header).
       
   140 // ---------------------------------------------------------
       
   141 //
       
   142 EXPORT_C const TDesC& TPhoneCmdParamGlobalNote::Text() const
       
   143    {
       
   144    return iText;
       
   145    }
       
   146 
       
   147 // ---------------------------------------------------------
       
   148 // TPhoneCmdParamGlobalNote::Tone
       
   149 // Returns the note tone
       
   150 // (other items were commented in a header).
       
   151 // ---------------------------------------------------------
       
   152 //
       
   153 EXPORT_C TInt TPhoneCmdParamGlobalNote::Tone() const
       
   154    {
       
   155    return iTone;
       
   156    }
       
   157 
       
   158 // ---------------------------------------------------------
       
   159 // TPhoneCmdParamGlobalNote::WaitForReady
       
   160 // Returns the status of wait for completed
       
   161 // (other items were commented in a header).
       
   162 // ---------------------------------------------------------
       
   163 //
       
   164 EXPORT_C TBool TPhoneCmdParamGlobalNote::WaitForReady() const
       
   165    {
       
   166    return iWaitforReady;
       
   167    }
       
   168    
       
   169 // ---------------------------------------------------------
       
   170 // TPhoneCmdParamGlobalNote::Softkeys
       
   171 // Returns the note softkeys
       
   172 // (other items were commented in a header).
       
   173 // ---------------------------------------------------------
       
   174 //
       
   175 EXPORT_C TInt TPhoneCmdParamGlobalNote::Softkeys() const
       
   176    {
       
   177    return iSoftkeys;
       
   178    }
       
   179 
       
   180 //  End of File