\hypertarget{classagOdalaunch_1_1Xbox}{
\section{agOdalaunch::Xbox Class Reference}
\label{dc/d31/classagOdalaunch_1_1Xbox}\index{agOdalaunch::Xbox@{agOdalaunch::Xbox}}
}


\hyperlink{classagOdalaunch_1_1Xbox}{Xbox} Class.  




{\ttfamily \#include $<$xbox\_\-main.h$>$}

\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static char $\ast$ \hyperlink{classagOdalaunch_1_1Xbox_a6e362c310da7d37fdeb96d1863b24b3a}{InetNtoa} (struct in\_\-addr in)
\begin{DoxyCompactList}\small\item\em Network Byte Order address to ascii string. \end{DoxyCompactList}\item 
static struct \hyperlink{structagOdalaunch_1_1hostent}{hostent} $\ast$ \hyperlink{classagOdalaunch_1_1Xbox_ac56a84e57c3f1d8d25f6ad2877fadc49}{GetHostByName} (const char $\ast$\hyperlink{txt__io_8cpp_a8f8f80d37794cde9472343e4487ba3eb}{name})
\begin{DoxyCompactList}\small\item\em Get Host by Name. \end{DoxyCompactList}\item 
static int \hyperlink{classagOdalaunch_1_1Xbox_a11939975370300f83ff407199b98f84c}{InitializeJoystick} (void)
\begin{DoxyCompactList}\small\item\em Initialize the \hyperlink{classagOdalaunch_1_1Xbox}{Xbox} joystick. \end{DoxyCompactList}\item 
static void \hyperlink{classagOdalaunch_1_1Xbox_ab65a6ec1977c6aed40b92c37e58fa968}{EnableJoystickUpdates} (bool enable)
\begin{DoxyCompactList}\small\item\em Enable or disable \hyperlink{classagOdalaunch_1_1Xbox}{Xbox} joystick updates. \end{DoxyCompactList}\item 
static void \hyperlink{classagOdalaunch_1_1Xbox_ad1695d7ba62bffc7396fff5003e0d7ef}{MountPartitions} ()
\begin{DoxyCompactList}\small\item\em Mount \hyperlink{classagOdalaunch_1_1Xbox}{Xbox} partitions. \end{DoxyCompactList}\item 
static void \hyperlink{classagOdalaunch_1_1Xbox_a2288fa90b033f642706134a60d6a0bbc}{UnMountPartitions} ()
\begin{DoxyCompactList}\small\item\em Unmount \hyperlink{classagOdalaunch_1_1Xbox}{Xbox} partitions. \end{DoxyCompactList}\item 
static void \hyperlink{classagOdalaunch_1_1Xbox_a270adbbfbf714abac5503f3b57e31718}{OutputDebugString} (const char $\ast$\hyperlink{portlistingparse_8c_a7906a77d388c7c6f7eea5850f61f55e1}{str},...)
\begin{DoxyCompactList}\small\item\em Output a string for debugging. \end{DoxyCompactList}\item 
static int \hyperlink{classagOdalaunch_1_1Xbox_aa3c91acb21c8a9fe8f60a2bd84893a0d}{InitLogFile} ()
\begin{DoxyCompactList}\small\item\em Initialize the log file. \end{DoxyCompactList}\item 
static void \hyperlink{classagOdalaunch_1_1Xbox_adf5c5caa8433a775ec02c8816def9550}{CloseLogFile} ()
\begin{DoxyCompactList}\small\item\em Close the log file. \end{DoxyCompactList}\item 
static void \hyperlink{classagOdalaunch_1_1Xbox_a757bf5eb5038b9a09cb532d4afe314ae}{InitNet} ()
\begin{DoxyCompactList}\small\item\em Initialize the network adapter. \end{DoxyCompactList}\item 
static void \hyperlink{classagOdalaunch_1_1Xbox_ad7881608018f049e583fa7c9832e5d99}{CloseNetwork} ()
\begin{DoxyCompactList}\small\item\em Close the network adapter. \end{DoxyCompactList}\item 
static void \hyperlink{classagOdalaunch_1_1Xbox_a5e42fd12b302bf46b0eeafac1811ee44}{EnableDebugConsole} ()
\begin{DoxyCompactList}\small\item\em Enable the debug console. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\hyperlink{classagOdalaunch_1_1Xbox}{Xbox} Class. 

The \hyperlink{classagOdalaunch_1_1Xbox}{Xbox} class provides utilities and function overrides that are needed for the \hyperlink{classagOdalaunch_1_1Xbox}{Xbox} platform. 

\subsection{Member Function Documentation}
\hypertarget{classagOdalaunch_1_1Xbox_adf5c5caa8433a775ec02c8816def9550}{
\index{agOdalaunch::Xbox@{agOdalaunch::Xbox}!CloseLogFile@{CloseLogFile}}
\index{CloseLogFile@{CloseLogFile}!agOdalaunch::Xbox@{agOdalaunch::Xbox}}
\subsubsection[{CloseLogFile}]{\setlength{\rightskip}{0pt plus 5cm}void agOdalaunch::Xbox::CloseLogFile (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{dc/d31/classagOdalaunch_1_1Xbox_adf5c5caa8433a775ec02c8816def9550}


Close the log file. 

This function closes the \hyperlink{classagOdalaunch_1_1Xbox}{Xbox} log file. \hypertarget{classagOdalaunch_1_1Xbox_ad7881608018f049e583fa7c9832e5d99}{
\index{agOdalaunch::Xbox@{agOdalaunch::Xbox}!CloseNetwork@{CloseNetwork}}
\index{CloseNetwork@{CloseNetwork}!agOdalaunch::Xbox@{agOdalaunch::Xbox}}
\subsubsection[{CloseNetwork}]{\setlength{\rightskip}{0pt plus 5cm}void agOdalaunch::Xbox::CloseNetwork (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{dc/d31/classagOdalaunch_1_1Xbox_ad7881608018f049e583fa7c9832e5d99}


Close the network adapter. 

Close the \hyperlink{classagOdalaunch_1_1Xbox}{Xbox} network adapter and release any leased IP address. \hypertarget{classagOdalaunch_1_1Xbox_a5e42fd12b302bf46b0eeafac1811ee44}{
\index{agOdalaunch::Xbox@{agOdalaunch::Xbox}!EnableDebugConsole@{EnableDebugConsole}}
\index{EnableDebugConsole@{EnableDebugConsole}!agOdalaunch::Xbox@{agOdalaunch::Xbox}}
\subsubsection[{EnableDebugConsole}]{\setlength{\rightskip}{0pt plus 5cm}void agOdalaunch::Xbox::EnableDebugConsole (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{dc/d31/classagOdalaunch_1_1Xbox_a5e42fd12b302bf46b0eeafac1811ee44}


Enable the debug console. 

This function enables the debug console which causes debug output to be sent to the debug console. \hypertarget{classagOdalaunch_1_1Xbox_ab65a6ec1977c6aed40b92c37e58fa968}{
\index{agOdalaunch::Xbox@{agOdalaunch::Xbox}!EnableJoystickUpdates@{EnableJoystickUpdates}}
\index{EnableJoystickUpdates@{EnableJoystickUpdates}!agOdalaunch::Xbox@{agOdalaunch::Xbox}}
\subsubsection[{EnableJoystickUpdates}]{\setlength{\rightskip}{0pt plus 5cm}void agOdalaunch::Xbox::EnableJoystickUpdates (
\begin{DoxyParamCaption}
\item[{bool}]{enable}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{dc/d31/classagOdalaunch_1_1Xbox_ab65a6ec1977c6aed40b92c37e58fa968}


Enable or disable \hyperlink{classagOdalaunch_1_1Xbox}{Xbox} joystick updates. 

The \hyperlink{classagOdalaunch_1_1Xbox}{Xbox} joystick can be enabled or disabled by passing true or false to this function.


\begin{DoxyParams}{Parameters}
{\em enable} & true or false. \\
\hline
\end{DoxyParams}
\hypertarget{classagOdalaunch_1_1Xbox_ac56a84e57c3f1d8d25f6ad2877fadc49}{
\index{agOdalaunch::Xbox@{agOdalaunch::Xbox}!GetHostByName@{GetHostByName}}
\index{GetHostByName@{GetHostByName}!agOdalaunch::Xbox@{agOdalaunch::Xbox}}
\subsubsection[{GetHostByName}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf hostent} $\ast$ agOdalaunch::Xbox::GetHostByName (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{name}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static, read\mbox{]}}}}
\label{dc/d31/classagOdalaunch_1_1Xbox_ac56a84e57c3f1d8d25f6ad2877fadc49}


Get Host by Name. 

This is a custom implementation of gethostbyname() for \hyperlink{classagOdalaunch_1_1Xbox}{Xbox}. gethostbyname() returns a hostent structure for the provided hostname or IP address.


\begin{DoxyParams}{Parameters}
{\em name} & A hostname or IP address. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A filled in hostent structure or NULL on error. 
\end{DoxyReturn}
\hypertarget{classagOdalaunch_1_1Xbox_a6e362c310da7d37fdeb96d1863b24b3a}{
\index{agOdalaunch::Xbox@{agOdalaunch::Xbox}!InetNtoa@{InetNtoa}}
\index{InetNtoa@{InetNtoa}!agOdalaunch::Xbox@{agOdalaunch::Xbox}}
\subsubsection[{InetNtoa}]{\setlength{\rightskip}{0pt plus 5cm}char $\ast$ agOdalaunch::Xbox::InetNtoa (
\begin{DoxyParamCaption}
\item[{struct in\_\-addr}]{in}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{dc/d31/classagOdalaunch_1_1Xbox_a6e362c310da7d37fdeb96d1863b24b3a}


Network Byte Order address to ascii string. 

This is a custom implementation of inet\_\-ntoa() for \hyperlink{classagOdalaunch_1_1Xbox}{Xbox}. inet\_\-ntoa() converts an internet address in network byte order to an ascii string.


\begin{DoxyParams}{Parameters}
{\em in} & Network address. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Address ascii string. 
\end{DoxyReturn}
\hypertarget{classagOdalaunch_1_1Xbox_a11939975370300f83ff407199b98f84c}{
\index{agOdalaunch::Xbox@{agOdalaunch::Xbox}!InitializeJoystick@{InitializeJoystick}}
\index{InitializeJoystick@{InitializeJoystick}!agOdalaunch::Xbox@{agOdalaunch::Xbox}}
\subsubsection[{InitializeJoystick}]{\setlength{\rightskip}{0pt plus 5cm}int agOdalaunch::Xbox::InitializeJoystick (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{dc/d31/classagOdalaunch_1_1Xbox_a11939975370300f83ff407199b98f84c}


Initialize the \hyperlink{classagOdalaunch_1_1Xbox}{Xbox} joystick. 

This function initializes the \hyperlink{classagOdalaunch_1_1Xbox}{Xbox} joystick which will move the cursor within the launcher as well as activate widgets.

\begin{DoxyReturn}{Returns}
0 on success, -\/1 on error. 
\end{DoxyReturn}
\hypertarget{classagOdalaunch_1_1Xbox_aa3c91acb21c8a9fe8f60a2bd84893a0d}{
\index{agOdalaunch::Xbox@{agOdalaunch::Xbox}!InitLogFile@{InitLogFile}}
\index{InitLogFile@{InitLogFile}!agOdalaunch::Xbox@{agOdalaunch::Xbox}}
\subsubsection[{InitLogFile}]{\setlength{\rightskip}{0pt plus 5cm}int agOdalaunch::Xbox::InitLogFile (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{dc/d31/classagOdalaunch_1_1Xbox_aa3c91acb21c8a9fe8f60a2bd84893a0d}


Initialize the log file. 

This function open the \hyperlink{classagOdalaunch_1_1Xbox}{Xbox} log file for writing.

\begin{DoxyReturn}{Returns}
0 on success, -\/1 on error. 
\end{DoxyReturn}
\hypertarget{classagOdalaunch_1_1Xbox_a757bf5eb5038b9a09cb532d4afe314ae}{
\index{agOdalaunch::Xbox@{agOdalaunch::Xbox}!InitNet@{InitNet}}
\index{InitNet@{InitNet}!agOdalaunch::Xbox@{agOdalaunch::Xbox}}
\subsubsection[{InitNet}]{\setlength{\rightskip}{0pt plus 5cm}void agOdalaunch::Xbox::InitNet (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{dc/d31/classagOdalaunch_1_1Xbox_a757bf5eb5038b9a09cb532d4afe314ae}


Initialize the network adapter. 

Initialize the \hyperlink{classagOdalaunch_1_1Xbox}{Xbox} network adapter and attempt to obtain an IP address. \hypertarget{classagOdalaunch_1_1Xbox_ad1695d7ba62bffc7396fff5003e0d7ef}{
\index{agOdalaunch::Xbox@{agOdalaunch::Xbox}!MountPartitions@{MountPartitions}}
\index{MountPartitions@{MountPartitions}!agOdalaunch::Xbox@{agOdalaunch::Xbox}}
\subsubsection[{MountPartitions}]{\setlength{\rightskip}{0pt plus 5cm}void agOdalaunch::Xbox::MountPartitions (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{dc/d31/classagOdalaunch_1_1Xbox_ad1695d7ba62bffc7396fff5003e0d7ef}


Mount \hyperlink{classagOdalaunch_1_1Xbox}{Xbox} partitions. 

This function mounts the \hyperlink{classagOdalaunch_1_1Xbox}{Xbox} partitions which makes them available for reading and writing. \hypertarget{classagOdalaunch_1_1Xbox_a270adbbfbf714abac5503f3b57e31718}{
\index{agOdalaunch::Xbox@{agOdalaunch::Xbox}!OutputDebugString@{OutputDebugString}}
\index{OutputDebugString@{OutputDebugString}!agOdalaunch::Xbox@{agOdalaunch::Xbox}}
\subsubsection[{OutputDebugString}]{\setlength{\rightskip}{0pt plus 5cm}void agOdalaunch::Xbox::OutputDebugString (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{str, }
\item[{}]{...}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{dc/d31/classagOdalaunch_1_1Xbox_a270adbbfbf714abac5503f3b57e31718}


Output a string for debugging. 

Provided a string, with optional standard variable arguments, this function will write the contents to a debug file and, if running in the debugger, print the string to the debug console.


\begin{DoxyParams}{Parameters}
{\em str} & The formatted string. \\
\hline
{\em ...} & Standard variable arguments. \\
\hline
\end{DoxyParams}
\hypertarget{classagOdalaunch_1_1Xbox_a2288fa90b033f642706134a60d6a0bbc}{
\index{agOdalaunch::Xbox@{agOdalaunch::Xbox}!UnMountPartitions@{UnMountPartitions}}
\index{UnMountPartitions@{UnMountPartitions}!agOdalaunch::Xbox@{agOdalaunch::Xbox}}
\subsubsection[{UnMountPartitions}]{\setlength{\rightskip}{0pt plus 5cm}void agOdalaunch::Xbox::UnMountPartitions (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{dc/d31/classagOdalaunch_1_1Xbox_a2288fa90b033f642706134a60d6a0bbc}


Unmount \hyperlink{classagOdalaunch_1_1Xbox}{Xbox} partitions. 

This function unmounts the \hyperlink{classagOdalaunch_1_1Xbox}{Xbox} partitions. 

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
ag-\/odalaunch/Xbox/\hyperlink{xbox__main_8h}{xbox\_\-main.h}\item 
ag-\/odalaunch/Xbox/\hyperlink{xbox__main_8cpp}{xbox\_\-main.cpp}\end{DoxyCompactItemize}
