epoc32/include/basched.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
--- a/epoc32/include/basched.h	Tue Nov 24 13:55:44 2009 +0000
+++ b/epoc32/include/basched.h	Tue Mar 16 16:12:26 2010 +0000
@@ -1,1 +1,79 @@
-basched.h
+// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
+// which accompanies this distribution, and is available
+// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+// Started by DWW, March 1997
+// BAFL specialization of CActiveScheduler
+// 
+//
+
+#if !defined(__BASCHED_H__)
+#define __BASCHED_H__
+
+#if !defined(__e32std_h__)
+#include <e32std.h>
+#endif
+
+#if !defined(__e32base_h__)
+#include <e32base.h>
+#endif
+
+/**
+@publishedAll
+@released
+*/
+const TInt KErrExtended=(-1000);
+const TInt KErrExtendedWithText=(-1001);
+const TInt KLeaveWithoutAlert=(-1002);
+const TInt KLeaveExit=(-1003);
+
+/**
+@internalComponent
+*/
+struct SExtendedError
+	{
+	TUid iComponent;
+	TInt iErrorNumber;
+	TBool iInformation;
+	};
+
+class CBaErrorHandler;
+
+class CBaActiveScheduler : public CActiveScheduler
+/**
+@publishedAll
+@released
+*/
+	{
+public:
+	IMPORT_C static void LeaveNoAlert();
+public: // Internal to Symbian
+	IMPORT_C static void Exit();
+	IMPORT_C static void LeaveForAlert(TUid aComponent,TInt aErrorNumber);
+	IMPORT_C static void LeaveForInfoPrint(TUid aComponent,TInt aErrorNumber);
+	IMPORT_C static void LeaveForErrorHandler(const CBaErrorHandler *aHandler);
+	IMPORT_C static const SExtendedError& ExtendedError();
+	IMPORT_C static void DisplayExtendedError(TUid aComponent,TInt aErrorNumber);
+	IMPORT_C virtual void DisplayError(TInt aError) const;
+public:// from CActiveScheduler
+	IMPORT_C void Error(TInt aError) const;
+private:
+// reserved virtual function space
+	IMPORT_C virtual void Reserved_1();
+	IMPORT_C virtual void Reserved_2();
+// internal
+	static void ExtendedLeave(TUid aComponent,TInt aErrorNumber,TBool aLeaveForInfoPrint);
+protected:
+	SExtendedError iExtendedError;
+	};
+
+#endif