Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

mime_handler.c File Reference

Install handlers for MIME types. More...

#include "rox-clib.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <gtk/gtk.h>
#include "mime_handler.h"
#include "rox.h"
#include "rox_debug.h"
#include "mime.h"
#include "appinfo.h"

Functions

void rox_mime_install_from_appinfo (void)


Detailed Description

Install handlers for MIME types.

This provides the facility for a ROX application to install itself as the handler for a set of MIME types in a standardized way. The user is asked to confirm any changes to their set up.

Author:
Stephen Watson
Version:
Id
mime_handler.c,v 1.6 2006/10/06 16:29:38 stephen Exp

Function Documentation

void rox_mime_install_from_appinfo void   ) 
 

Scan the applications AppInfo.xml file for CanRun and CanThumbnail declarations. If any are found they are reported to the user who is asked whether the application can be set as the current handler for those types.

Example AppInfo.xml (from VideoThumbnail):

 <AppInfo>
 ...
   <CanThumbnail>
     <MimeType type="video/mpeg"/>
     <MimeType type="video/quicktime"/>
     <MimeType type="video/x-msvideo"/>
   </CanThumbnail>
 </AppInfo> 
 


Generated on Fri Nov 24 16:19:59 2006 for ROX-CLib by  doxygen 1.4.4