\hypertarget{classLoadSaveInterface}{}\section{Load\+Save\+Interface Class Reference}
\label{classLoadSaveInterface}\index{Load\+Save\+Interface@{Load\+Save\+Interface}}


Interface for all plugins which want to Load or Save files and create Objects.  




{\ttfamily \#include $<$Open\+Flipper/\+Base\+Plugin/\+Load\+Save\+Interface.\+hh$>$}

Inheritance diagram for Load\+Save\+Interface\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=12.000000cm]{classLoadSaveInterface}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{classLoadSaveInterface_ab0ff1379c8613bfbac7ecd48e9456bef}{save} (int \+\_\+id, Q\+String \+\_\+filename)
\begin{DoxyCompactList}\small\item\em Save object to a file. \end{DoxyCompactList}\item 
virtual void \hyperlink{classLoadSaveInterface_a152541b680116d103397e2c2a92d049e}{load} (Q\+String \+\_\+filename, \hyperlink{classDataType}{Data\+Type} \+\_\+type, int \&\+\_\+id)
\begin{DoxyCompactList}\small\item\em Load object from file with a specific \hyperlink{classDataType}{Data\+Type}. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classLoadSaveInterface_ae1002bcd9c8b19677c560cb7834d625e}\label{classLoadSaveInterface_ae1002bcd9c8b19677c560cb7834d625e}} 
virtual \hyperlink{classLoadSaveInterface_ae1002bcd9c8b19677c560cb7834d625e}{$\sim$\+Load\+Save\+Interface} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
virtual void \hyperlink{classLoadSaveInterface_a088846b57b3ed0ec478afcda31b64596}{add\+Empty\+Object} (\hyperlink{classDataType}{Data\+Type} \+\_\+type, int \&\+\_\+id)
\item 
virtual void \hyperlink{classLoadSaveInterface_a7ceb0b3f5651a3bc23ef8bc3009ff5cd}{copy\+Object} (int \+\_\+old\+Id, int \&\+\_\+new\+Id)
\item 
virtual void \hyperlink{classLoadSaveInterface_acc1d5d24bfe7c2af461becfcdd7927f9}{empty\+Object\+Added} (int \+\_\+id)
\begin{DoxyCompactList}\small\item\em D\+E\+P\+R\+E\+C\+A\+T\+ED H\+E\+RE (Moved to Type Interface)! Emit this signal if an empty object has been created. \end{DoxyCompactList}\item 
virtual void \hyperlink{classLoadSaveInterface_a6c5ae74820943d0a571ca6e8b85a69cc}{delete\+Object} (int \+\_\+id)
\begin{DoxyCompactList}\small\item\em Delete an object~\newline
 This signal can be called from any thread.~\newline
. \end{DoxyCompactList}\item 
virtual void \hyperlink{classLoadSaveInterface_afb361d8553ecfb0ad373d505c2de4ba7}{delete\+All\+Objects} ()
\begin{DoxyCompactList}\small\item\em Delete all Objects. \end{DoxyCompactList}\item 
virtual void \hyperlink{classLoadSaveInterface_a30a7bccd9c03b3442ccf86ff19ad482f}{get\+All\+File\+Filters} (Q\+String\+List \&\+\_\+filters)
\begin{DoxyCompactList}\small\item\em Get all file filters that are registered. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Slots}
\begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{classLoadSaveInterface_a715c23643892f4938aae8ea771ac6e3b}{file\+Opened} (int \+\_\+id)
\begin{DoxyCompactList}\small\item\em A file has been opened. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{classLoadSaveInterface_acb0f81b08c31541abdc572f2fa400bf1}{added\+Empty\+Object} (int \+\_\+id)
\begin{DoxyCompactList}\small\item\em An empty object has been added. \end{DoxyCompactList}\item 
virtual void \hyperlink{classLoadSaveInterface_a0ab70c4ae3c08f298ecefa58f0bb8b2f}{object\+Deleted} (int \+\_\+id)
\begin{DoxyCompactList}\small\item\em An object was deleted. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Interface for all plugins which want to Load or Save files and create Objects. 

\hyperlink{loadSaveInterfacePage}{Detailed description} ~\newline
 Using this interface you can instruct the core to open/save objects or to create new empty objects. 

Definition at line 59 of file Load\+Save\+Interface.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{classLoadSaveInterface_acb0f81b08c31541abdc572f2fa400bf1}\label{classLoadSaveInterface_acb0f81b08c31541abdc572f2fa400bf1}} 
\index{Load\+Save\+Interface@{Load\+Save\+Interface}!added\+Empty\+Object@{added\+Empty\+Object}}
\index{added\+Empty\+Object@{added\+Empty\+Object}!Load\+Save\+Interface@{Load\+Save\+Interface}}
\subsubsection{\texorpdfstring{added\+Empty\+Object()}{addedEmptyObject()}}
{\footnotesize\ttfamily virtual void Load\+Save\+Interface\+::added\+Empty\+Object (\begin{DoxyParamCaption}\item[{int}]{\+\_\+id }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}



An empty object has been added. 

Slot is called if an empty object has been added by the core.~\newline
This slot will be executed on the main thread.~\newline

\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & Id of the new object \\
\hline
\end{DoxyParams}


Reimplemented in \hyperlink{classMeshObjectSelectionPlugin_acc64aa7b9d9d0a071846f333079be37c}{Mesh\+Object\+Selection\+Plugin}, and \hyperlink{classTypeLightPlugin_a51dd9fe9f9fc9a9bfa245349646ff4f6}{Type\+Light\+Plugin}.



Definition at line 139 of file Load\+Save\+Interface.\+hh.

\mbox{\Hypertarget{classLoadSaveInterface_a088846b57b3ed0ec478afcda31b64596}\label{classLoadSaveInterface_a088846b57b3ed0ec478afcda31b64596}} 
\index{Load\+Save\+Interface@{Load\+Save\+Interface}!add\+Empty\+Object@{add\+Empty\+Object}}
\index{add\+Empty\+Object@{add\+Empty\+Object}!Load\+Save\+Interface@{Load\+Save\+Interface}}
\subsubsection{\texorpdfstring{add\+Empty\+Object()}{addEmptyObject()}}
{\footnotesize\ttfamily virtual void Load\+Save\+Interface\+::add\+Empty\+Object (\begin{DoxyParamCaption}\item[{\hyperlink{classDataType}{Data\+Type}}]{\+\_\+type,  }\item[{int \&}]{\+\_\+id }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}

Add an empty object of the given type~\newline
This signal can be called from any thread.~\newline
 
\begin{DoxyParams}{Parameters}
{\em \+\_\+type} & Type to be created \\
\hline
{\em \+\_\+id} & Here the id of the loaded object is returned. id is -\/1 something went wrong \\
\hline
\end{DoxyParams}


Definition at line 89 of file Load\+Save\+Interface.\+hh.

\mbox{\Hypertarget{classLoadSaveInterface_a7ceb0b3f5651a3bc23ef8bc3009ff5cd}\label{classLoadSaveInterface_a7ceb0b3f5651a3bc23ef8bc3009ff5cd}} 
\index{Load\+Save\+Interface@{Load\+Save\+Interface}!copy\+Object@{copy\+Object}}
\index{copy\+Object@{copy\+Object}!Load\+Save\+Interface@{Load\+Save\+Interface}}
\subsubsection{\texorpdfstring{copy\+Object()}{copyObject()}}
{\footnotesize\ttfamily virtual void Load\+Save\+Interface\+::copy\+Object (\begin{DoxyParamCaption}\item[{int}]{\+\_\+old\+Id,  }\item[{int \&}]{\+\_\+new\+Id }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}

Create a copy of an existing object


\begin{DoxyParams}{Parameters}
{\em \+\_\+old\+Id} & id of the object to copy \\
\hline
{\em \+\_\+new\+Id} & id of the new object created \\
\hline
\end{DoxyParams}


Definition at line 96 of file Load\+Save\+Interface.\+hh.

\mbox{\Hypertarget{classLoadSaveInterface_afb361d8553ecfb0ad373d505c2de4ba7}\label{classLoadSaveInterface_afb361d8553ecfb0ad373d505c2de4ba7}} 
\index{Load\+Save\+Interface@{Load\+Save\+Interface}!delete\+All\+Objects@{delete\+All\+Objects}}
\index{delete\+All\+Objects@{delete\+All\+Objects}!Load\+Save\+Interface@{Load\+Save\+Interface}}
\subsubsection{\texorpdfstring{delete\+All\+Objects()}{deleteAllObjects()}}
{\footnotesize\ttfamily virtual void Load\+Save\+Interface\+::delete\+All\+Objects (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Delete all Objects. 



Definition at line 116 of file Load\+Save\+Interface.\+hh.

\mbox{\Hypertarget{classLoadSaveInterface_a6c5ae74820943d0a571ca6e8b85a69cc}\label{classLoadSaveInterface_a6c5ae74820943d0a571ca6e8b85a69cc}} 
\index{Load\+Save\+Interface@{Load\+Save\+Interface}!delete\+Object@{delete\+Object}}
\index{delete\+Object@{delete\+Object}!Load\+Save\+Interface@{Load\+Save\+Interface}}
\subsubsection{\texorpdfstring{delete\+Object()}{deleteObject()}}
{\footnotesize\ttfamily virtual void Load\+Save\+Interface\+::delete\+Object (\begin{DoxyParamCaption}\item[{int}]{\+\_\+id }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Delete an object~\newline
 This signal can be called from any thread.~\newline
. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & Id of the object \\
\hline
\end{DoxyParams}


Definition at line 111 of file Load\+Save\+Interface.\+hh.

\mbox{\Hypertarget{classLoadSaveInterface_acc1d5d24bfe7c2af461becfcdd7927f9}\label{classLoadSaveInterface_acc1d5d24bfe7c2af461becfcdd7927f9}} 
\index{Load\+Save\+Interface@{Load\+Save\+Interface}!empty\+Object\+Added@{empty\+Object\+Added}}
\index{empty\+Object\+Added@{empty\+Object\+Added}!Load\+Save\+Interface@{Load\+Save\+Interface}}
\subsubsection{\texorpdfstring{empty\+Object\+Added()}{emptyObjectAdded()}}
{\footnotesize\ttfamily virtual void Load\+Save\+Interface\+::empty\+Object\+Added (\begin{DoxyParamCaption}\item[{int}]{\+\_\+id }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



D\+E\+P\+R\+E\+C\+A\+T\+ED H\+E\+RE (Moved to Type Interface)! Emit this signal if an empty object has been created. 

Deprecated! Objects are added by the Type Plugins and this is signal is in the \hyperlink{classTypeInterface}{Type\+Interface} now


\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & Id of the added object \\
\hline
\end{DoxyParams}


Definition at line 105 of file Load\+Save\+Interface.\+hh.

\mbox{\Hypertarget{classLoadSaveInterface_a715c23643892f4938aae8ea771ac6e3b}\label{classLoadSaveInterface_a715c23643892f4938aae8ea771ac6e3b}} 
\index{Load\+Save\+Interface@{Load\+Save\+Interface}!file\+Opened@{file\+Opened}}
\index{file\+Opened@{file\+Opened}!Load\+Save\+Interface@{Load\+Save\+Interface}}
\subsubsection{\texorpdfstring{file\+Opened}{fileOpened}}
{\footnotesize\ttfamily virtual void Load\+Save\+Interface\+::file\+Opened (\begin{DoxyParamCaption}\item[{int}]{\+\_\+id }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}, {\ttfamily [slot]}}



A file has been opened. 

This slot is called if a file has been opened by the core.~\newline
This slot will be executed in the main thread.~\newline

\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & Id of the new object \\
\hline
\end{DoxyParams}


Definition at line 131 of file Load\+Save\+Interface.\+hh.

\mbox{\Hypertarget{classLoadSaveInterface_a30a7bccd9c03b3442ccf86ff19ad482f}\label{classLoadSaveInterface_a30a7bccd9c03b3442ccf86ff19ad482f}} 
\index{Load\+Save\+Interface@{Load\+Save\+Interface}!get\+All\+File\+Filters@{get\+All\+File\+Filters}}
\index{get\+All\+File\+Filters@{get\+All\+File\+Filters}!Load\+Save\+Interface@{Load\+Save\+Interface}}
\subsubsection{\texorpdfstring{get\+All\+File\+Filters()}{getAllFileFilters()}}
{\footnotesize\ttfamily virtual void Load\+Save\+Interface\+::get\+All\+File\+Filters (\begin{DoxyParamCaption}\item[{Q\+String\+List \&}]{\+\_\+filters }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Get all file filters that are registered. 



Definition at line 121 of file Load\+Save\+Interface.\+hh.

\mbox{\Hypertarget{classLoadSaveInterface_a152541b680116d103397e2c2a92d049e}\label{classLoadSaveInterface_a152541b680116d103397e2c2a92d049e}} 
\index{Load\+Save\+Interface@{Load\+Save\+Interface}!load@{load}}
\index{load@{load}!Load\+Save\+Interface@{Load\+Save\+Interface}}
\subsubsection{\texorpdfstring{load}{load}}
{\footnotesize\ttfamily virtual void Load\+Save\+Interface\+::load (\begin{DoxyParamCaption}\item[{Q\+String}]{\+\_\+filename,  }\item[{\hyperlink{classDataType}{Data\+Type}}]{\+\_\+type,  }\item[{int \&}]{\+\_\+id }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}, {\ttfamily [signal]}}



Load object from file with a specific \hyperlink{classDataType}{Data\+Type}. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+filename} & Filename of the File to load \\
\hline
{\em \+\_\+type} & Type to be loaded \\
\hline
{\em \+\_\+id} & Here the id of the loaded object is returned. id is -\/1 something went wrong \\
\hline
\end{DoxyParams}


Definition at line 80 of file Load\+Save\+Interface.\+hh.

\mbox{\Hypertarget{classLoadSaveInterface_a0ab70c4ae3c08f298ecefa58f0bb8b2f}\label{classLoadSaveInterface_a0ab70c4ae3c08f298ecefa58f0bb8b2f}} 
\index{Load\+Save\+Interface@{Load\+Save\+Interface}!object\+Deleted@{object\+Deleted}}
\index{object\+Deleted@{object\+Deleted}!Load\+Save\+Interface@{Load\+Save\+Interface}}
\subsubsection{\texorpdfstring{object\+Deleted()}{objectDeleted()}}
{\footnotesize\ttfamily virtual void Load\+Save\+Interface\+::object\+Deleted (\begin{DoxyParamCaption}\item[{int}]{\+\_\+id }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}



An object was deleted. 

This function is called by the core if an object gets deleted. It is called immediately before the object is removed from the scenegraph. So if this function is invoked, the object still exists. All plugins get informed via this slot.\textbackslash{}

After this function got called for all plugins, the object is removed from the scene with all nodes attached to it and all \hyperlink{classPerObjectData}{Per\+Object\+Data} attached to it.~\newline
 This slot will be executed on the main thread.


\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & Id of the object that is deleted. \\
\hline
\end{DoxyParams}


Reimplemented in \hyperlink{classTypeLightPlugin_ac84ec76e6e79eab1cd45d10f9db37987}{Type\+Light\+Plugin}, and \hyperlink{classTypeQtWidgetPlugin_ac207dfa91f9af432462bd489bf2bec09}{Type\+Qt\+Widget\+Plugin}.



Definition at line 154 of file Load\+Save\+Interface.\+hh.

\mbox{\Hypertarget{classLoadSaveInterface_ab0ff1379c8613bfbac7ecd48e9456bef}\label{classLoadSaveInterface_ab0ff1379c8613bfbac7ecd48e9456bef}} 
\index{Load\+Save\+Interface@{Load\+Save\+Interface}!save@{save}}
\index{save@{save}!Load\+Save\+Interface@{Load\+Save\+Interface}}
\subsubsection{\texorpdfstring{save}{save}}
{\footnotesize\ttfamily virtual void Load\+Save\+Interface\+::save (\begin{DoxyParamCaption}\item[{int}]{\+\_\+id,  }\item[{Q\+String}]{\+\_\+filename }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}, {\ttfamily [signal]}}



Save object to a file. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & Object to Save \\
\hline
{\em \+\_\+filename} & Filename to save it to (Leave as \char`\"{}\char`\"{} to automatically determine filename) \\
\hline
\end{DoxyParams}


Definition at line 72 of file Load\+Save\+Interface.\+hh.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/\+Base\+Plugin/\hyperlink{LoadSaveInterface_8hh}{Load\+Save\+Interface.\+hh}\end{DoxyCompactItemize}
