MIME handler example
This application demonstrates how to create and register your own MIME type handler. A request to open a file is handled in one of the following ways, depending on how the file is interacted with:
- As a command line launch argument when opening a file through the "Open file" system menu;
- As a DBus call of a running application when opening a file through a "Open file" system menu;
- As a Share API call when interracting with a file using "Share" action.
Supported MIME types
You can request a list of all supported MIME types on a specific Aurora OS device by running /usr/share/mime/packages/:
grep /usr/share/mime/packages/ -r -e 'mime-type type='
For a full list of MIME types please refer to https://www.iana.org/assignments/media-types/media-types.xhtml.
Terms of Use and Participation
The source code of the project is provided under the license, which allows its use in third-party applications.
The contributor agreement documents the rights granted by contributors of the Open Mobile Platform.
Information about the contributors is specified in the AUTHORS file.
Code of conduct is a current set of rules of the Open Mobile Platform which informs you how we expect the members of the community will interact while contributing and communicating.
Project Structure
The project has a standard structure of an application based on C++ and QML for Aurora OS.
- CMakeLists.txt file describes the project structure for the CMake build system.
- dummy.pdf example pdf file.
- icons directory contains the application icons for different screen resolutions.
-
qml directory contains the QML source code and the UI resources.
- cover directory contains the application cover implementations.
- icons directory contains the additional custom UI icons.
- pages directory contains the application pages.
- MIMEHandler.qml file provides the application window implementation.
-
rpm directory contains the rpm-package build settings.
- ru.auroraos.MIMEHandler.spec file is used by rpmbuild tool.
- src directory contains the C++ source code.
- translations directory contains the UI translation files.
- ru.auroraos.MIMEHandler.desktop file defines the display and parameters for launching the application.
Compatibility
The project is compatible with all the current versions of the Aurora OS.
