0
|
1 |
/*
|
|
2 |
* Copyright (c) 2005-2009 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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
inline TRequestStatus& CActiveBase::Status()
|
|
22 |
{return iStatus;}
|
|
23 |
|
|
24 |
inline void CActiveBase::SetActive()
|
|
25 |
{
|
|
26 |
if(!IsActive())
|
|
27 |
CActive::SetActive();
|
|
28 |
}
|
|
29 |
|
|
30 |
inline void CActiveBase::Kick()
|
|
31 |
{
|
|
32 |
Prime();
|
|
33 |
Complete(KErrNone);
|
|
34 |
}
|
|
35 |
|
|
36 |
inline void CActiveBase::Prime()
|
|
37 |
{
|
|
38 |
iStatus = KRequestPending;
|
|
39 |
if(!IsActive())
|
|
40 |
CActive::SetActive();
|
|
41 |
}
|
|
42 |
|
|
43 |
inline void CActiveBase::Complete(TInt aCode)
|
|
44 |
{
|
|
45 |
TRequestStatus* status = &iStatus;
|
|
46 |
User::RequestComplete(status,aCode);
|
|
47 |
}
|
|
48 |
|
|
49 |
inline CActiveBase::CActiveBase() : CActive(EPriorityStandard)
|
|
50 |
{CActiveScheduler::Add(this);}
|
|
51 |
|
|
52 |
inline CActiveBase::~CActiveBase()
|
|
53 |
{}
|
|
54 |
|
|
55 |
///////
|
|
56 |
inline const TDesC& CLogFileControl::LogFile()
|
|
57 |
{return iLogFileName;}
|
|
58 |
|
|
59 |
inline void CLogFileControl::DoCancel()
|
|
60 |
{}
|
|
61 |
|
|
62 |
inline void CLogFileControl::AddSession()
|
|
63 |
{iSessionCount++;}
|
|
64 |
|
|
65 |
inline void CLogFileControl::RemoveSession()
|
|
66 |
{iSessionCount--;}
|
|
67 |
|
|
68 |
inline TInt CLogFileControl::SessionCount() const
|
|
69 |
{return iSessionCount;}
|
|
70 |
|
|
71 |
inline TBool CLogFileControl::QueueEmpty() const
|
|
72 |
{return iQueue.IsEmpty();}
|
|
73 |
|
|
74 |
inline void CLogFileControl::AddLogBuffer(CLogBuffer& aBuffer)
|
|
75 |
{iQueue.AddLast(aBuffer);}
|
|
76 |
|
|
77 |
///////
|
|
78 |
inline RPointerArray<CLogFileControl>& CLogServer::LogControl()
|
|
79 |
{return iControl;}
|
|
80 |
|
|
81 |
inline RFs& CLogServer::Fs()
|
|
82 |
{return iFs;}
|
|
83 |
|
|
84 |
///////
|
|
85 |
inline const TDesC8& CLogBuffer::Buf()
|
|
86 |
{return iLogBuffer;}
|
|
87 |
|
|
88 |
inline TInt CLogBuffer::LinkOffset()
|
|
89 |
{return _FOFF(CLogBuffer,iLink);}
|