14
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 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 |
#ifndef CMDNSCACHECONSISTENCYMGR_H_
|
|
19 |
#define CMDNSCACHECONSISTENCYMGR_H_
|
|
20 |
|
|
21 |
#include <e32base.h>
|
|
22 |
#include <mdns/mdnscachemgr.h>
|
|
23 |
|
|
24 |
|
|
25 |
class CMDNSCacheConsistencyMgr : public CActive
|
|
26 |
{
|
|
27 |
public:
|
|
28 |
|
|
29 |
IMPORT_C static CMDNSCacheConsistencyMgr* NewL(TBool aActiveCacheMgmtEnabled,MDNSCacheMgr& aCache);
|
|
30 |
static CMDNSCacheConsistencyMgr* NewLC(TBool aActiveCacheMgmtEnabled,MDNSCacheMgr& aCache);
|
|
31 |
|
|
32 |
IMPORT_C void Start();
|
|
33 |
|
|
34 |
~CMDNSCacheConsistencyMgr();
|
|
35 |
void DoCancel();
|
|
36 |
|
|
37 |
private:
|
|
38 |
|
|
39 |
void RunL();
|
|
40 |
TInt RunError(TInt aError);
|
|
41 |
|
|
42 |
|
|
43 |
private:
|
|
44 |
|
|
45 |
CMDNSCacheConsistencyMgr(TBool aActiveCacheMgmtEnabled,MDNSCacheMgr& aCache);
|
|
46 |
void ConstructL();
|
|
47 |
|
|
48 |
private:
|
|
49 |
|
|
50 |
MDNSCacheMgr& iCache;
|
|
51 |
|
|
52 |
TBool iActiveCacheMgmtEnabled;
|
|
53 |
|
|
54 |
TUint iWalkInterval;
|
|
55 |
|
|
56 |
RTimer iTimer;
|
|
57 |
};
|
|
58 |
|
|
59 |
|
|
60 |
#endif /*CMDNSCACHECONSISTENCYMGR_H_*/
|