37
|
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 TPhoneCmdParamProgressNote class.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
// INCLUDE FILES
|
|
20 |
#include "tphonecmdparamprogressnote.h"
|
|
21 |
#include "phoneui.pan"
|
|
22 |
|
|
23 |
// ================= MEMBER FUNCTIONS =======================
|
|
24 |
|
|
25 |
// -----------------------------------------------------------------------------
|
|
26 |
// TPhoneCmdParamProgressNote::TPhoneCmdParamProgressNote
|
|
27 |
// C++ default constructor can NOT contain any code, that
|
|
28 |
// might leave.
|
|
29 |
// -----------------------------------------------------------------------------
|
|
30 |
//
|
|
31 |
EXPORT_C TPhoneCmdParamProgressNote::TPhoneCmdParamProgressNote():
|
|
32 |
TPhoneCommandParam(),
|
|
33 |
iResourceId( 0 ),
|
|
34 |
iWaitTime( 0 )
|
|
35 |
{
|
|
36 |
iParamId = EPhoneParamIdProgressNote;
|
|
37 |
}
|
|
38 |
|
|
39 |
// ---------------------------------------------------------
|
|
40 |
// TPhoneCmdParamProgressNote::SetResourceId
|
|
41 |
// Sets the note resource ID
|
|
42 |
// (other items were commented in a header).
|
|
43 |
// ---------------------------------------------------------
|
|
44 |
//
|
|
45 |
EXPORT_C void TPhoneCmdParamProgressNote::SetResourceId( TInt aResourceId )
|
|
46 |
{
|
|
47 |
__ASSERT_DEBUG( aResourceId, Panic( EPhoneUtilsParameterNotInitialized ) );
|
|
48 |
iResourceId = aResourceId;
|
|
49 |
}
|
|
50 |
|
|
51 |
// ---------------------------------------------------------
|
|
52 |
// TPhoneCmdParamProgressNote::SetWaitTime
|
|
53 |
// Sets the note timeout
|
|
54 |
// (other items were commented in a header).
|
|
55 |
// ---------------------------------------------------------
|
|
56 |
//
|
|
57 |
EXPORT_C void TPhoneCmdParamProgressNote::SetWaitTime(
|
|
58 |
TTimeIntervalMicroSeconds32 aWaitTime )
|
|
59 |
{
|
|
60 |
iWaitTime = aWaitTime;
|
|
61 |
}
|
|
62 |
|
|
63 |
|
|
64 |
// ---------------------------------------------------------
|
|
65 |
// TPhoneCmdParamProgressNote::ResourceId
|
|
66 |
// Returns the note resource ID
|
|
67 |
// (other items were commented in a header).
|
|
68 |
// ---------------------------------------------------------
|
|
69 |
//
|
|
70 |
EXPORT_C TInt TPhoneCmdParamProgressNote::ResourceId() const
|
|
71 |
{
|
|
72 |
__ASSERT_DEBUG( iResourceId, Panic( EPhoneUtilsInvariant ) );
|
|
73 |
return iResourceId;
|
|
74 |
}
|
|
75 |
|
|
76 |
// ---------------------------------------------------------
|
|
77 |
// TPhoneCmdParamProgressNote::WaitTime
|
|
78 |
// Returns the note timeout
|
|
79 |
// (other items were commented in a header).
|
|
80 |
// ---------------------------------------------------------
|
|
81 |
//
|
|
82 |
EXPORT_C TTimeIntervalMicroSeconds32 TPhoneCmdParamProgressNote::WaitTime() const
|
|
83 |
{
|
|
84 |
return iWaitTime;
|
|
85 |
}
|
|
86 |
|
|
87 |
// End of File
|