browserplugin/cpixnpplugin/inc/nputils.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 02 Sep 2010 20:27:46 +0300
changeset 20 68cdadcf169e
parent 0 ccd0fd43f247
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* 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 NPUTILS_H_
#define NPUTILS_H_

#include <e32cmn.h>

#include <npapi.h>
#include <npscript.h>
#include <npupp.h>

namespace nputils {

	TInt VariantToInt( NPVariant& v );
	TReal VariantToDouble( NPVariant& v );
	TUint VariantToUnsigned( NPVariant& v );
	void DescriptorToVariantL(const TDesC16& aString, NPVariant& aVariant);
	void DescriptorToVariant(const TDesC8& aString, NPVariant& aVariant);
	void VariantToDescriptor(NPVariant& aVariant, TDes8& aString);
	void VariantToDescriptorL(NPVariant& aVariant, TDes16& aString);
	HBufC16* VariantToHBufC16LC(NPVariant& aVariant);
	HBufC8* VariantToHBufC8LC(NPVariant& aVariant);
	HBufC8* GetLocationUrlLC();
}


#endif /* NPUTILS */