/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the QtMimeTypes addon of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and Digia. For licensing terms and ** conditions see http://qt.digia.com/licensing. For further information ** use the contact form at http://qt.digia.com/contact-us. ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser ** General Public License version 2.1 as published by the Free Software ** Foundation and appearing in the file LICENSE.LGPL included in the ** packaging of this file. Please review the following information to ** ensure the GNU Lesser General Public License version 2.1 requirements ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. ** ** In addition, as a special exception, Digia gives you certain additional ** rights. These rights are described in the Digia Qt LGPL Exception ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. ** ** GNU General Public License Usage ** Alternatively, this file may be used under the terms of the GNU ** General Public License version 3.0 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. Please review the following information to ** ensure the GNU General Public License version 3.0 requirements will be ** met: http://www.gnu.org/copyleft/gpl.html. ** ** ** $QT_END_LICENSE$ ** ****************************************************************************/ #include "qmimetyperegistry.h" // ------------------------------------------------------------------------------------------------ class QMimeTypeRegistryPrivate {}; // ------------------------------------------------------------------------------------------------ QMimeTypeRegistry::QMimeTypeRegistry() : d_ptr(new QMimeTypeRegistryPrivate()) {} // ------------------------------------------------------------------------------------------------ QMimeTypeRegistry::~QMimeTypeRegistry() { delete d_ptr; d_ptr = 0; } // ------------------------------------------------------------------------------------------------ QList QMimeTypeRegistry::mimeTypes() const { typedef QList Result; return Result(); } // ------------------------------------------------------------------------------------------------ QMimeType QMimeTypeRegistry::findMimeType ( const QMimeTypeName &searchMimeTypeName ) const { typedef QMimeType Result; Q_UNUSED(searchMimeTypeName) return Result(); } // ------------------------------------------------------------------------------------------------ QList QMimeTypeRegistry::filenameExtensions() const { typedef QList Result; return Result(); } // ------------------------------------------------------------------------------------------------ QString QMimeTypeRegistry::extractFilenameExtension ( const QString &fileName ) const { QString result; const QList theFilenameExtensions (filenameExtensions()); foreach (const QString &filenameExtension, theFilenameExtensions) { if (filenameExtension.length() > result.length() && fileName.right(filenameExtension.length()) == filenameExtension) { result = filenameExtension; } } return result; } // ------------------------------------------------------------------------------------------------ QList QMimeTypeRegistry::findMimeTypes ( const QString &searchFilenameExtension ) const { typedef QList Result; Q_UNUSED(searchFilenameExtension) return Result(); } // ------------------------------------------------------------------------------------------------ QMimeTypeName QMimeTypeRegistry::determineMimeType ( const QByteArray &data ) const { typedef QMimeTypeName Result; Q_UNUSED(data) return Result(); } // ------------------------------------------------------------------------------------------------ QList QMimeTypeRegistry::serviceActions() const { typedef QList Result; return Result(); } // ------------------------------------------------------------------------------------------------ QServiceAction QMimeTypeRegistry::findServiceAction ( const QServiceActionName &searchServiceActionName ) { typedef QServiceAction Result; Q_UNUSED(searchServiceActionName) return Result(); } // ------------------------------------------------------------------------------------------------ bool QMimeTypeRegistry::userAlwaysSelectsApplication ( const QServiceActionName &serviceActionName, const QMimeTypeName &mimeTypeName ) const { typedef bool Result; Q_UNUSED(serviceActionName) Q_UNUSED(mimeTypeName) return Result(); } // ------------------------------------------------------------------------------------------------ void QMimeTypeRegistry::setUserAlwaysSelectsApplication ( const QServiceActionName &serviceActionName, const QMimeTypeName &mimeTypeName, const bool newSetting ) { Q_UNUSED(serviceActionName) Q_UNUSED(mimeTypeName) Q_UNUSED(newSetting) } // ------------------------------------------------------------------------------------------------ void QMimeTypeRegistry::increaseApplicationPreference ( const QApplicationId &applicationId, const QServiceActionName &serviceActionName, const QMimeTypeName &mimeTypeName ) { Q_UNUSED(applicationId) Q_UNUSED(serviceActionName) Q_UNUSED(mimeTypeName) } // ------------------------------------------------------------------------------------------------ void QMimeTypeRegistry::decreaseApplicationPreference ( const QApplicationId &applicationId, const QServiceActionName &serviceActionName, const QMimeTypeName &mimeTypeName ) { Q_UNUSED(applicationId) Q_UNUSED(serviceActionName) Q_UNUSED(mimeTypeName) } // ------------------------------------------------------------------------------------------------ QList > QMimeTypeRegistry::findApplications ( const QMimeTypeName &mimeTypeName ) const { typedef QList > Result; Q_UNUSED(mimeTypeName) return Result(); } // ------------------------------------------------------------------------------------------------ QList QMimeTypeRegistry::findApplications ( const QServiceActionName &serviceActionName, const QMimeTypeName &mimeTypeName ) const { typedef QList Result; Q_UNUSED(serviceActionName) Q_UNUSED(mimeTypeName) return Result(); }