imagingandcamerafws/imagingfws/ImageDisplay/src/Resolver/ImageDisplayResolvrUtils.inl
Bug 3673 - Seeking via grabbing the Music Player progress bar does not work.
// Copyright (c) 2004-2009 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:
//
/**
@file
@internalComponent
*/
inline TInt COpaqueDataParse::ExtnsCount() const
{
ASSERT(iState >= EExtnsProcessed);
return iExtnCount;
}
inline TInt COpaqueDataParse::MIMETypesCount() const
{
ASSERT(iState >= EMIMETypesProcessed);
return iArray.Count() - ExtnsCount();
}
inline const TDesC8& COpaqueDataParse::Extn(TInt aIndex) const
{
ASSERT(aIndex < ExtnsCount());
return iArray[aIndex];
}
inline const TDesC8& COpaqueDataParse::MIMEType(TInt aIndex) const
{
ASSERT(aIndex < MIMETypesCount());
return iArray[aIndex+ExtnsCount()];
}
inline TInt COpaqueDataParse::Version() const
{
return iVersion;
}
inline TInt COpaqueDataParse::Flags() const
{
return iFlags;
}
inline TUid COpaqueDataParse::ImageTypeUid() const
{
return iImageTypeUid;
}
inline TUid COpaqueDataParse::ImageSubTypeUid() const
{
return iImageSubTypeUid;
}
inline TBool COpaqueDataParse::CompareUids(TUid aType, TUid aSubType) const
{
return ImageTypeUid()==aType && ImageSubTypeUid()==aSubType;
}
inline TBool COpaqueDataParse::CompareUids(COpaqueDataParse* aParse) const
{
return CompareUids(aParse->ImageTypeUid(), aParse->ImageSubTypeUid());
}
// true if only uids are available - ie neither extns nor mime types are provided
inline TBool COpaqueDataParse::OnlyUidsAvail() const
{
return iOpaqueData.Length()<=iStartOfNumberOfExtns;
}
// true if the plugin allows opening based on file extension
inline TBool COpaqueDataParse::IsOpenAgainstSuffix() const
{
return ((iFlags & EOpenAgainstSuffix)!=EFalse);
}
// true if the plugin supports SetSourceRect()
inline TBool COpaqueDataParse::IsSetSourceRectSupported() const
{
return ((iFlags & ESetSourceRectSupported)!=EFalse);
}