browserplugin/cpixnpplugin/inc/idl/icpixnpsearcherobserver.h
changeset 0 ccd0fd43f247
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/browserplugin/cpixnpplugin/inc/idl/icpixnpsearcherobserver.h	Mon Apr 19 14:40:05 2010 +0300
@@ -0,0 +1,53 @@
+/*
+* Copyright (c) 2010 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: 
+*
+*/
+#ifndef ICPIXSEARCHEROBSERVER_
+#define ICPIXSEARCHEROBSERVER_
+
+#include "INPSearchDocument.h"
+
+
+struct NPSearchDocumentObject;
+struct NPSearchTermListObject;
+
+/**
+ * MSearchObserver
+ * Mixin class.
+ * Observer which handles search results received from the server.
+ * 
+ * This interface represents a JavaScript object provided
+ * by a searcher client. Calling provided methods will invoke 
+ * corresponding methods in the JavaScript object. 
+ */
+class MCPixNPSearcherObserver 
+	{
+public:
+	
+	/**
+	 * Callback method of ICPixNPSearcher::SearchL
+	 * @param aError Description of error, may be NULL
+	 */
+    virtual void HandleSearchResultsL(const TDesC8* aError, TInt aEstimatedResultCount) = 0;
+    
+    /**
+	 * Callback method of ICPixNPSearcher::GetDocumentL
+	 * @param aError Description of error, may be NULL
+	 * @param aDocument Next document, may be NULL
+     */
+    virtual void HandleDocumentL(const TDesC8* aError, NPSearchDocumentObject* aDocument) = 0;
+	};
+
+#endif /*ICPIXSEARCHEROBSERVER_*/