719
|
1 |
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
872
|
4 |
// under the terms of the License "Eclipse Public License v1.0"
|
719
|
5 |
// which accompanies this distribution, and is available
|
872
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
719
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
/**
|
|
19 |
@file
|
|
20 |
*/
|
|
21 |
|
|
22 |
|
|
23 |
// user include
|
|
24 |
#include "T_MsgSharedDataSmtp.h"
|
|
25 |
|
|
26 |
|
|
27 |
// epoc includes
|
|
28 |
#include <miutset.h>
|
|
29 |
|
|
30 |
/**
|
|
31 |
NewL()
|
|
32 |
Static factory constructor. Uses two phase
|
|
33 |
construction.
|
|
34 |
|
|
35 |
@leave KErrNoMemory
|
|
36 |
@return
|
|
37 |
A pointer to the newly created CT_MsgSharedDataSmtp object.
|
|
38 |
*/
|
|
39 |
CT_MsgSharedDataSmtp* CT_MsgSharedDataSmtp::NewL()
|
|
40 |
{
|
|
41 |
CT_MsgSharedDataSmtp* self = new(ELeave) CT_MsgSharedDataSmtp();
|
|
42 |
CleanupStack::PushL(self);
|
|
43 |
self->ConstructL();
|
|
44 |
CleanupStack::Pop(self);
|
|
45 |
return self;
|
|
46 |
}
|
|
47 |
|
|
48 |
|
|
49 |
/**
|
|
50 |
ConstructL()
|
|
51 |
Second phage constructor
|
|
52 |
*/
|
|
53 |
void CT_MsgSharedDataSmtp::ConstructL()
|
|
54 |
{
|
|
55 |
CT_MsgSharedDataBase::ConstructL();
|
|
56 |
iPeriodic = CPeriodic::New(1);
|
|
57 |
iMaxRamValue = 0;
|
|
58 |
iMinRamValue = 0;
|
|
59 |
iStartRamValue = 0;
|
|
60 |
iEndRamValue = 0;
|
|
61 |
iMark = ETrue;
|
|
62 |
}
|
|
63 |
|
|
64 |
/**
|
|
65 |
~CT_MsgSharedDataSmtp
|
|
66 |
Destructor
|
|
67 |
*/
|
|
68 |
CT_MsgSharedDataSmtp::~CT_MsgSharedDataSmtp()
|
|
69 |
{
|
|
70 |
delete iPeriodic;
|
|
71 |
}
|
|
72 |
|
|
73 |
/**
|
|
74 |
NewMtmL()
|
|
75 |
|
|
76 |
*/
|
|
77 |
CBaseMtm* CT_MsgSharedDataSmtp::NewMtmL()
|
|
78 |
{
|
|
79 |
return iRegistry->NewMtmL(KUidMsgTypeSMTP);
|
|
80 |
}
|
|
81 |
|
|
82 |
|
|
83 |
/**
|
|
84 |
CT_MsgSharedDataBase()
|
|
85 |
Constructor
|
|
86 |
*/
|
|
87 |
CT_MsgSharedDataSmtp::CT_MsgSharedDataSmtp()
|
|
88 |
{
|
|
89 |
}
|