|
1 /* |
|
2 * Copyright (c) 2008 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: Context publishing helper dll |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <hg/hgcontextutilitybase.h> |
|
20 #include "hgcontextutilityimpl.h" |
|
21 |
|
22 // ----------------------------------------------------------------------------- |
|
23 // CHgContextUtilityBase::CHgContextUtilityBase |
|
24 // ----------------------------------------------------------------------------- |
|
25 // |
|
26 CHgContextUtilityBase::CHgContextUtilityBase() |
|
27 { |
|
28 } |
|
29 |
|
30 // ----------------------------------------------------------------------------- |
|
31 // CHgContextUtilityBase::BaseConstructL |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 void CHgContextUtilityBase::BaseConstructL() |
|
35 { |
|
36 iImpl = CHgContextUtilityImpl::NewL(); |
|
37 } |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // CHgContextUtilityBase::~CHgContextUtilityBase |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 CHgContextUtilityBase::~CHgContextUtilityBase() |
|
44 { |
|
45 delete iImpl; |
|
46 } |
|
47 |
|
48 // ----------------------------------------------------------------------------- |
|
49 // CHgContextUtilityBase::PublishContextL |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 EXPORT_C void CHgContextUtilityBase::PublishContextL( const TDesC& aContextType, |
|
53 const TDesC& aContextData ) |
|
54 { |
|
55 iImpl->PublishContextL( aContextType, aContextData ); |
|
56 } |
|
57 |
|
58 // ----------------------------------------------------------------------------- |
|
59 // CHgContextUtilityBase::PublishContextL |
|
60 // Array version |
|
61 // ----------------------------------------------------------------------------- |
|
62 // |
|
63 EXPORT_C void CHgContextUtilityBase::PublishContextL( const TDesC& aContextType, |
|
64 const MDesCArray& aContextData ) |
|
65 { |
|
66 iImpl->PublishContextL( aContextType, aContextData ); |
|
67 } |
|
68 |
|
69 // ----------------------------------------------------------------------------- |
|
70 // CHgContextUtilityBase::GetContextL |
|
71 // ----------------------------------------------------------------------------- |
|
72 // |
|
73 EXPORT_C HBufC* CHgContextUtilityBase::GetContextL( const TDesC& aContextSource, |
|
74 const TDesC& aContextType ) |
|
75 { |
|
76 return iImpl->GetContextL( aContextSource, aContextType ); |
|
77 } |
|
78 |
|
79 // ----------------------------------------------------------------------------- |
|
80 // CHgContextUtilityBase::GetContextL |
|
81 // Version using a fixed context source |
|
82 // ----------------------------------------------------------------------------- |
|
83 // |
|
84 EXPORT_C HBufC* CHgContextUtilityBase::GetContextL( const TDesC& aContextType ) |
|
85 { |
|
86 return iImpl->GetContextL( aContextType ); |
|
87 } |
|
88 |
|
89 // ----------------------------------------------------------------------------- |
|
90 // CHgContextUtilityBase::PublishContextDelayedL |
|
91 // ----------------------------------------------------------------------------- |
|
92 // |
|
93 EXPORT_C void CHgContextUtilityBase::PublishContextDelayedL( |
|
94 const TDesC& aContextType, |
|
95 const TDesC& aContextData, |
|
96 const TTimeIntervalMicroSeconds32& aDelay ) |
|
97 { |
|
98 iImpl->PublishContextDelayedL( aContextType, aContextData, aDelay ); |
|
99 } |
|
100 |
|
101 // ----------------------------------------------------------------------------- |
|
102 // CHgContextUtilityBase::PublishContextDelayedL |
|
103 // ----------------------------------------------------------------------------- |
|
104 // |
|
105 EXPORT_C void CHgContextUtilityBase::PublishContextDelayedL( |
|
106 const TDesC& aContextType, |
|
107 const MDesCArray& aContextData, |
|
108 const TTimeIntervalMicroSeconds32& aDelay ) |
|
109 { |
|
110 iImpl->PublishContextDelayedL( aContextType, aContextData, aDelay ); |
|
111 } |
|
112 |
|
113 |
|
114 // end of file |