\hypertarget{a00307}{\section{Backup\+Data Class Reference}
\label{a00307}\index{Backup\+Data@{Backup\+Data}}
}


Abstract class that is used to store backups.  




{\ttfamily \#include $<$Open\+Flipper/common/\+Backup\+Data.\+hh$>$}

Inheritance diagram for Backup\+Data\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{a00307}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00307_a30e0df6d817ce78dd9c006c99f800b41}{\hyperlink{a00307_a30e0df6d817ce78dd9c006c99f800b41}{Backup\+Data} (\hyperlink{a00330}{Base\+Object\+Data} $\ast$\+\_\+object=0)}\label{a00307_a30e0df6d817ce78dd9c006c99f800b41}

\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hypertarget{a00307_a9b20adf987c1ca5161fe89e46293a41c}{virtual \hyperlink{a00307_a9b20adf987c1ca5161fe89e46293a41c}{$\sim$\+Backup\+Data} ()}\label{a00307_a9b20adf987c1ca5161fe89e46293a41c}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\hypertarget{a00307_a81908c9c016fb443925d8321316d4998}{void \hyperlink{a00307_a81908c9c016fb443925d8321316d4998}{store\+Backup} (\hyperlink{a00310}{Base\+Backup} $\ast$\+\_\+backup)}\label{a00307_a81908c9c016fb443925d8321316d4998}

\begin{DoxyCompactList}\small\item\em store a backup \end{DoxyCompactList}\item 
\hypertarget{a00307_ab349f292eb781bb30b8d59f5dc1f6e8b}{void \hyperlink{a00307_ab349f292eb781bb30b8d59f5dc1f6e8b}{undo} ()}\label{a00307_ab349f292eb781bb30b8d59f5dc1f6e8b}

\begin{DoxyCompactList}\small\item\em perform an undo if possible \end{DoxyCompactList}\item 
\hypertarget{a00307_ae7e7c5a2090a6dbd67d2c793ebb94d33}{void \hyperlink{a00307_ae7e7c5a2090a6dbd67d2c793ebb94d33}{redo} ()}\label{a00307_ae7e7c5a2090a6dbd67d2c793ebb94d33}

\begin{DoxyCompactList}\small\item\em perform a redo if possible \end{DoxyCompactList}\item 
\hypertarget{a00307_affe6442f615819b3540acc23a2d87e8b}{int \hyperlink{a00307_affe6442f615819b3540acc23a2d87e8b}{undo\+I\+D} ()}\label{a00307_affe6442f615819b3540acc23a2d87e8b}

\begin{DoxyCompactList}\small\item\em return the id of the next undo backup \end{DoxyCompactList}\item 
\hypertarget{a00307_acc6217cf3ca98caadde942789402b1b3}{int \hyperlink{a00307_acc6217cf3ca98caadde942789402b1b3}{redo\+I\+D} ()}\label{a00307_acc6217cf3ca98caadde942789402b1b3}

\begin{DoxyCompactList}\small\item\em return the id of the next redo backup \end{DoxyCompactList}\item 
\hypertarget{a00307_a8c9c2e9aff232f2c48739cd9bde6afd8}{int \hyperlink{a00307_a8c9c2e9aff232f2c48739cd9bde6afd8}{current\+I\+D} ()}\label{a00307_a8c9c2e9aff232f2c48739cd9bde6afd8}

\begin{DoxyCompactList}\small\item\em return the id of the current backup state \end{DoxyCompactList}\item 
\hypertarget{a00307_aed8c279f9f0f7c8c1c7d1d166eaee1b3}{Q\+String \hyperlink{a00307_aed8c279f9f0f7c8c1c7d1d166eaee1b3}{undo\+Name} ()}\label{a00307_aed8c279f9f0f7c8c1c7d1d166eaee1b3}

\begin{DoxyCompactList}\small\item\em return the name of the next undo backup \end{DoxyCompactList}\item 
\hypertarget{a00307_ad4f41d174c593cbc6cbf8df4cf68ad41}{Q\+String \hyperlink{a00307_ad4f41d174c593cbc6cbf8df4cf68ad41}{redo\+Name} ()}\label{a00307_ad4f41d174c593cbc6cbf8df4cf68ad41}

\begin{DoxyCompactList}\small\item\em return the name of the next redo backup \end{DoxyCompactList}\item 
\hypertarget{a00307_a3c1058442967f32933dbbe758686a4e6}{bool \hyperlink{a00307_a3c1058442967f32933dbbe758686a4e6}{undo\+Available} ()}\label{a00307_a3c1058442967f32933dbbe758686a4e6}

\begin{DoxyCompactList}\small\item\em return if an undo backup is available \end{DoxyCompactList}\item 
\hypertarget{a00307_a83bf21d49bd20ebcc27185a77209a87b}{bool \hyperlink{a00307_a83bf21d49bd20ebcc27185a77209a87b}{redo\+Available} ()}\label{a00307_a83bf21d49bd20ebcc27185a77209a87b}

\begin{DoxyCompactList}\small\item\em return if a redo backup is available \end{DoxyCompactList}\item 
\hypertarget{a00307_ad37f7418d7d51d2685ec12c4458d7bf2}{bool \hyperlink{a00307_ad37f7418d7d51d2685ec12c4458d7bf2}{undo\+Blocked} ()}\label{a00307_ad37f7418d7d51d2685ec12c4458d7bf2}

\begin{DoxyCompactList}\small\item\em return if an undo backup is blocked \end{DoxyCompactList}\item 
\hypertarget{a00307_aa88d1543e973e0261dbdd097379f23bf}{bool \hyperlink{a00307_aa88d1543e973e0261dbdd097379f23bf}{redo\+Blocked} ()}\label{a00307_aa88d1543e973e0261dbdd097379f23bf}

\begin{DoxyCompactList}\small\item\em return if a redo backup is blocked \end{DoxyCompactList}\item 
\hypertarget{a00307_a90e0e093c61ea5ba30f9af33b7365903}{void \hyperlink{a00307_a90e0e093c61ea5ba30f9af33b7365903}{clear} ()}\label{a00307_a90e0e093c61ea5ba30f9af33b7365903}

\begin{DoxyCompactList}\small\item\em remove all backups \end{DoxyCompactList}\item 
void \hyperlink{a00307_a81866f4b3cdbab15b79ce2410b58342e}{set\+Links} (\hyperlink{a02488_af4b4959090eb91720b2f1f4bd6131cfb}{Id\+List} \+\_\+object\+I\+Ds)
\item 
\hypertarget{a00307_a36aff5e9aa6afc2f25d619a29bc7478d}{\hyperlink{a00310}{Base\+Backup} $\ast$ \hyperlink{a00307_a36aff5e9aa6afc2f25d619a29bc7478d}{current\+State} ()}\label{a00307_a36aff5e9aa6afc2f25d619a29bc7478d}

\begin{DoxyCompactList}\small\item\em return the current state \end{DoxyCompactList}\item 
\hypertarget{a00307_a276b7f343f48487a0c1f8782984bb763}{size\+\_\+t \hyperlink{a00307_a276b7f343f48487a0c1f8782984bb763}{max\+Backups} ()}\label{a00307_a276b7f343f48487a0c1f8782984bb763}

\begin{DoxyCompactList}\small\item\em return the maximum of backups which are saved \end{DoxyCompactList}\item 
\hypertarget{a00307_a1e7be2c8f05dad5ad4e0f57b08759a7d}{void \hyperlink{a00307_a1e7be2c8f05dad5ad4e0f57b08759a7d}{set\+Max\+Backups} (size\+\_\+t \+\_\+max)}\label{a00307_a1e7be2c8f05dad5ad4e0f57b08759a7d}

\begin{DoxyCompactList}\small\item\em set the maximum of saved backups \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00307_acf068d23fc463a3a0fe9dc2012189602}{std\+::vector$<$ \hyperlink{a00310}{Base\+Backup} $\ast$ $>$ {\bfseries undo\+States\+\_\+}}\label{a00307_acf068d23fc463a3a0fe9dc2012189602}

\item 
\hypertarget{a00307_a995b66813357097442becbe26ec10eed}{std\+::vector$<$ \hyperlink{a00310}{Base\+Backup} $\ast$ $>$ {\bfseries redo\+States\+\_\+}}\label{a00307_a995b66813357097442becbe26ec10eed}

\item 
\hypertarget{a00307_ab2d60cd6de02575e49c17f428c20615e}{\hyperlink{a00310}{Base\+Backup} $\ast$ {\bfseries current\+State\+\_\+}}\label{a00307_ab2d60cd6de02575e49c17f428c20615e}

\item 
\hypertarget{a00307_aacd9198cec8fd2f223e199f7a364a632}{\hyperlink{a00330}{Base\+Object\+Data} $\ast$ {\bfseries object\+\_\+}}\label{a00307_aacd9198cec8fd2f223e199f7a364a632}

\item 
\hypertarget{a00307_a645db8af4c05627c203d9589c44e4198}{size\+\_\+t {\bfseries max\+Backups\+\_\+}}\label{a00307_a645db8af4c05627c203d9589c44e4198}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Abstract class that is used to store backups. 

The default implementation can only backup per\+Object\+Datas 

Definition at line 66 of file Backup\+Data.\+hh.



\subsection{Member Function Documentation}
\hypertarget{a00307_a81866f4b3cdbab15b79ce2410b58342e}{\index{Backup\+Data@{Backup\+Data}!set\+Links@{set\+Links}}
\index{set\+Links@{set\+Links}!Backup\+Data@{Backup\+Data}}
\subsubsection[{set\+Links}]{\setlength{\rightskip}{0pt plus 5cm}void Backup\+Data\+::set\+Links (
\begin{DoxyParamCaption}
\item[{{\bf Id\+List}}]{\+\_\+object\+I\+Ds}
\end{DoxyParamCaption}
)}}\label{a00307_a81866f4b3cdbab15b79ce2410b58342e}
add links to other backups for the current state this is used to ensure that the backups are only applied simultaneously 

Definition at line 241 of file Backup\+Data.\+cc.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/common/Backup\+Data.\+hh\item 
Open\+Flipper/common/Backup\+Data.\+cc\end{DoxyCompactItemize}
