--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/accessoryservices/accessoryserver/inc/Server/AccSrvConnectionStatusHandler.h Tue Feb 02 00:53:00 2010 +0200
@@ -0,0 +1,120 @@
+/*
+* Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Accessory connection status handler
+*
+*/
+
+
+
+#ifndef CACCSRVCONNECTIONSTATUSHANDLER_H
+#define CACCSRVCONNECTIONSTATUSHANDLER_H
+
+// INCLUDE FILES
+#include "AccSrvHandlerBase.h"
+
+// CONSTANTS
+
+// MACROS
+
+// DATA TYPES
+
+// FUNCTION PROTOTYPES
+
+// FORWARD DECLARATIONS
+class MAccSrvConnectionControllerObserver;
+
+// CLASS DECLARATION
+
+/**
+* Starts asunchronous Accessory Connection Status update.
+*
+* @lib AccServer.lib
+* @since S60 3.1
+*/
+NONSHARABLE_CLASS( CAccSrvConnectionStatusHandler ) : public CAccSrvHandlerBase
+ {
+ public: // Constructors and destructor
+
+ /**
+ * Two-phased constructor.
+ */
+ static CAccSrvConnectionStatusHandler* NewL(
+ MAccSrvConnectionControllerObserver* aCallback );
+
+ /**
+ * Destructor.
+ */
+ virtual ~CAccSrvConnectionStatusHandler();
+
+ public: // New functions
+
+ public: // Functions from base classes
+
+ protected: // New functions
+
+ protected: // Functions from base classes
+
+ /**
+ * Handles an active object's request completion event.
+ *
+ * @since S60 3.1
+ * @return void
+ */
+ void RunL();
+
+
+ /**
+ * The active scheduler calls this function if this active object's
+ * RunL() function leaves.
+ *
+ * @since S60 3.1
+ * @param aError The leave code
+ * @return KErrNone, when error has been handled
+ */
+ TInt RunError( TInt aError );
+
+ private:
+
+ /**
+ * C++ default constructor.
+ */
+ CAccSrvConnectionStatusHandler();
+
+ /**
+ * Constructor with notify handling.
+ */
+ CAccSrvConnectionStatusHandler( MAccSrvConnectionControllerObserver* aCallback );
+
+ /**
+ * By default Symbian 2nd phase constructor is private.
+ */
+ void ConstructL();
+
+ public: // Data
+
+ protected: // Data
+
+ private: // Data
+
+ public: // Friend classes
+
+ protected: // Friend classes
+
+ private: // Friend classes
+
+};
+
+#endif // CACCSRVCONNECTIONSTATUSHANDLER_H
+
+// End of File