Ticket #18752: App.cpp

File App.cpp, 425 bytes (added by humdinger, 10 months ago)

source

Line 
1/*
2 * Copyright 2024, My Name <my@email.address>
3 * All rights reserved. Distributed under the terms of the MIT license.
4 */
5#include <Message.h>
6#include <MimeType.h>
7
8
9#include <stdio.h>
10
11
12int
13main(int argc, char** argv)
14{
15 BMessage applications;
16 BMimeType type("application/x-vnd.Haiku-icon");
17 type.GetSupportingApps(&applications);
18
19 printf("\nMimeType %s\n", type.Type());
20 applications.PrintToStream();
21
22 return 0;
23}