\section{mime\_\-handler.c File Reference}
\label{mime__handler_8c}\index{mime_handler.c@{mime\_\-handler.c}}
Install handlers for MIME types. 

{\tt \#include \char`\"{}rox-clib.h\char`\"{}}\par
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include $<$time.h$>$}\par
{\tt \#include $<$sys/types.h$>$}\par
{\tt \#include $<$sys/stat.h$>$}\par
{\tt \#include $<$unistd.h$>$}\par
{\tt \#include $<$gtk/gtk.h$>$}\par
{\tt \#include \char`\"{}mime\_\-handler.h\char`\"{}}\par
{\tt \#include \char`\"{}rox.h\char`\"{}}\par
{\tt \#include \char`\"{}rox\_\-debug.h\char`\"{}}\par
{\tt \#include \char`\"{}mime.h\char`\"{}}\par
{\tt \#include \char`\"{}appinfo.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf rox\_\-mime\_\-install\_\-from\_\-appinfo} (void)
\end{CompactItemize}


\subsection{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.

\begin{Desc}
\item[Author:]Stephen Watson \end{Desc}
\begin{Desc}
\item[Version:]\begin{Desc}
\item[Id]\doxyref{mime\_\-handler.c}{p.}{mime__handler_8c},v 1.6 2006/10/06 16:29:38 stephen Exp \end{Desc}
\end{Desc}


\subsection{Function Documentation}
\index{mime_handler.c@{mime\_\-handler.c}!rox_mime_install_from_appinfo@{rox\_\-mime\_\-install\_\-from\_\-appinfo}}
\index{rox_mime_install_from_appinfo@{rox\_\-mime\_\-install\_\-from\_\-appinfo}!mime_handler.c@{mime\_\-handler.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void rox\_\-mime\_\-install\_\-from\_\-appinfo (void)}\label{mime__handler_8c_5b5cebcf1ce58a221ae0b6ad2c66e4a5}


Scan the applications App\-Info.xml file for Can\-Run and Can\-Thumbnail 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 App\-Info.xml (from Video\-Thumbnail): \small\begin{alltt}
 <AppInfo>
 ...
   <CanThumbnail>
     <MimeType type="video/mpeg"/>
     <MimeType type="video/quicktime"/>
     <MimeType type="video/x-msvideo"/>
   </CanThumbnail>
 </AppInfo> 
 \end{alltt}
\normalsize 
 