qcpix/src/platform/s60/inc/cpixutils.h
changeset 15 cf5c74390b98
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/qcpix/src/platform/s60/inc/cpixutils.h	Wed Aug 18 10:53:26 2010 +0300
@@ -0,0 +1,43 @@
+/*
+* 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 CPIXUTILS_H_
+#define CPIXUTILS_H_
+
+/**
+ * Helper to convert symbian descriptor to QString.
+ * @param aDesc the descriptor to be converted to QString.
+ * @return QString representation of the descriptor.
+ */
+QString QStringFromDescriptor( const TDesC& aDesc );
+
+/**
+ * Gets a QCPixDocument from CSearchDocument
+ * @param aDoc CSearchDocument to be converted to QCPixDocument. Takes ownership of aDoc.
+ * @return QCPixDocument representation of aDoc. Ownership transferred to caller.
+ */
+CpixDocument* CpixDocFromCSearchDocument( CSearchDocument* aDoc );
+
+/**
+ * Gets array of QCPixDocuments from batch of CSearchDocuments
+ * @param aDoc batch of CSearchDocuments to be converted to QCPixDocuments. Takes ownership of aDoc.
+ * @param aReturnDoc number of CSearchDocuments in the aDoc
+ * @return QCPixDocument representation of aDoc. Ownership transferred to caller.
+ */
+CpixDocument** CpixBatchDocFromCSearchDocument(TInt aReturnDoc,  CSearchDocument** aDoc );
+
+#endif /* QCPIXUTILS_H_ */