First public contribution.
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
26 #ifndef __CAFHELPER_H__
27 #define __CAFHELPER_H__
32 namespace ContentAccess
35 class MCAFHelperInterface;
38 CAF client application can use this class to load cafhelper.dll and get access to entry function pointer
39 of the dll,using which the appropriate error handling APIs can be called.
45 NONSHARABLE_CLASS(CCAFHelper) : public CBase
50 Constructs a new CCAFHelper object.
52 @return A pointer to an instance of CCAFHelper class.
56 IMPORT_C static CCAFHelper* NewL();
59 Constructs a new CCAFHelper object and puts a pointer to the new object
60 onto the cleanup stack..
62 @return A pointer to an instance of CCAFHelper class.
66 IMPORT_C static CCAFHelper* NewLC();
69 Accessor method which returns an entry point function pointer of cafhelper.dll,
70 using which the error handling APIs can be accessed.
72 @return Reference to an instance of MCafHelperInterface class.
76 IMPORT_C MCAFHelperInterface& operator()() const;
78 // virtual destructor.
79 virtual ~CCAFHelper();
90 MCAFHelperInterface* iHelper;
93 } // namespace ContentAccess
95 #endif // __CAFHELPER_H__