\hypertarget{class_ogre_1_1_resource_background_queue_1_1_listener}{}\doxysection{Ogre\+::Resource\+Background\+Queue\+::Listener Class Reference}
\label{class_ogre_1_1_resource_background_queue_1_1_listener}\index{Ogre::ResourceBackgroundQueue::Listener@{Ogre::ResourceBackgroundQueue::Listener}}


This abstract listener interface lets you get notifications of completed background processes instead of having to poll ticket statuses.  




{\ttfamily \#include $<$Ogre\+Resource\+Background\+Queue.\+h$>$}

\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual \mbox{\hyperlink{class_ogre_1_1_resource_background_queue_1_1_listener_a28509ef0c32ec32d3fa12a672ba90c2f}{$\sim$\+Listener}} ()
\begin{DoxyCompactList}\small\item\em Need virtual destructor in case subclasses use it. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_resource_background_queue_1_1_listener_ac3d1dd80e752ab167868ab0a5e14aa16}{operation\+Completed}} (\mbox{\hyperlink{group___resources_ga1e2e9ee3e2ee22a4e792952239d38821}{Background\+Process\+Ticket}} ticket, const \mbox{\hyperlink{struct_ogre_1_1_background_process_result}{Background\+Process\+Result}} \&result)=0
\begin{DoxyCompactList}\small\item\em Called when a requested operation completes, queued into main thread. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This abstract listener interface lets you get notifications of completed background processes instead of having to poll ticket statuses. 

\begin{DoxyNote}{Note}
For simplicity, these callbacks are not issued direct from the background loading thread, they are queued themselves to be sent from the main thread so that you don\textquotesingle{}t have to be concerned about thread safety. 
\end{DoxyNote}


\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_resource_background_queue_1_1_listener_a28509ef0c32ec32d3fa12a672ba90c2f}\label{class_ogre_1_1_resource_background_queue_1_1_listener_a28509ef0c32ec32d3fa12a672ba90c2f}} 
\index{Ogre::ResourceBackgroundQueue::Listener@{Ogre::ResourceBackgroundQueue::Listener}!````~Listener@{$\sim$Listener}}
\index{````~Listener@{$\sim$Listener}!Ogre::ResourceBackgroundQueue::Listener@{Ogre::ResourceBackgroundQueue::Listener}}
\doxysubsubsection{\texorpdfstring{$\sim$Listener()}{~Listener()}}
{\footnotesize\ttfamily virtual Ogre\+::\+Resource\+Background\+Queue\+::\+Listener\+::$\sim$\+Listener (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Need virtual destructor in case subclasses use it. 



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_resource_background_queue_1_1_listener_ac3d1dd80e752ab167868ab0a5e14aa16}\label{class_ogre_1_1_resource_background_queue_1_1_listener_ac3d1dd80e752ab167868ab0a5e14aa16}} 
\index{Ogre::ResourceBackgroundQueue::Listener@{Ogre::ResourceBackgroundQueue::Listener}!operationCompleted@{operationCompleted}}
\index{operationCompleted@{operationCompleted}!Ogre::ResourceBackgroundQueue::Listener@{Ogre::ResourceBackgroundQueue::Listener}}
\doxysubsubsection{\texorpdfstring{operationCompleted()}{operationCompleted()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Resource\+Background\+Queue\+::\+Listener\+::operation\+Completed (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group___resources_ga1e2e9ee3e2ee22a4e792952239d38821}{Background\+Process\+Ticket}}}]{ticket,  }\item[{const \mbox{\hyperlink{struct_ogre_1_1_background_process_result}{Background\+Process\+Result}} \&}]{result }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}



Called when a requested operation completes, queued into main thread. 

\begin{DoxyNote}{Note}
For simplicity, this callback is not issued direct from the background loading thread, it is queued to be sent from the main thread so that you don\textquotesingle{}t have to be concerned about thread safety. 
\end{DoxyNote}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{_ogre_resource_background_queue_8h}{Ogre\+Resource\+Background\+Queue.\+h}}\end{DoxyCompactItemize}
