\hypertarget{a07028}{}\section{Backup\+Data Class Reference}
\label{a07028}\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]{a07028}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a07028_a30e0df6d817ce78dd9c006c99f800b41}\label{a07028_a30e0df6d817ce78dd9c006c99f800b41}} 
\hyperlink{a07028_a30e0df6d817ce78dd9c006c99f800b41}{Backup\+Data} (\hyperlink{a07044}{Base\+Object\+Data} $\ast$\+\_\+object=0)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07028_a9b20adf987c1ca5161fe89e46293a41c}\label{a07028_a9b20adf987c1ca5161fe89e46293a41c}} 
virtual \hyperlink{a07028_a9b20adf987c1ca5161fe89e46293a41c}{$\sim$\+Backup\+Data} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07028_a81908c9c016fb443925d8321316d4998}\label{a07028_a81908c9c016fb443925d8321316d4998}} 
void \hyperlink{a07028_a81908c9c016fb443925d8321316d4998}{store\+Backup} (\hyperlink{a07032}{Base\+Backup} $\ast$\+\_\+backup)
\begin{DoxyCompactList}\small\item\em store a backup \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07028_ab349f292eb781bb30b8d59f5dc1f6e8b}\label{a07028_ab349f292eb781bb30b8d59f5dc1f6e8b}} 
void \hyperlink{a07028_ab349f292eb781bb30b8d59f5dc1f6e8b}{undo} ()
\begin{DoxyCompactList}\small\item\em perform an undo if possible \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07028_ae7e7c5a2090a6dbd67d2c793ebb94d33}\label{a07028_ae7e7c5a2090a6dbd67d2c793ebb94d33}} 
void \hyperlink{a07028_ae7e7c5a2090a6dbd67d2c793ebb94d33}{redo} ()
\begin{DoxyCompactList}\small\item\em perform a redo if possible \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07028_affe6442f615819b3540acc23a2d87e8b}\label{a07028_affe6442f615819b3540acc23a2d87e8b}} 
int \hyperlink{a07028_affe6442f615819b3540acc23a2d87e8b}{undo\+ID} ()
\begin{DoxyCompactList}\small\item\em return the id of the next undo backup \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07028_acc6217cf3ca98caadde942789402b1b3}\label{a07028_acc6217cf3ca98caadde942789402b1b3}} 
int \hyperlink{a07028_acc6217cf3ca98caadde942789402b1b3}{redo\+ID} ()
\begin{DoxyCompactList}\small\item\em return the id of the next redo backup \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07028_a8c9c2e9aff232f2c48739cd9bde6afd8}\label{a07028_a8c9c2e9aff232f2c48739cd9bde6afd8}} 
int \hyperlink{a07028_a8c9c2e9aff232f2c48739cd9bde6afd8}{current\+ID} ()
\begin{DoxyCompactList}\small\item\em return the id of the current backup state \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07028_aed8c279f9f0f7c8c1c7d1d166eaee1b3}\label{a07028_aed8c279f9f0f7c8c1c7d1d166eaee1b3}} 
Q\+String \hyperlink{a07028_aed8c279f9f0f7c8c1c7d1d166eaee1b3}{undo\+Name} ()
\begin{DoxyCompactList}\small\item\em return the name of the next undo backup \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07028_ad4f41d174c593cbc6cbf8df4cf68ad41}\label{a07028_ad4f41d174c593cbc6cbf8df4cf68ad41}} 
Q\+String \hyperlink{a07028_ad4f41d174c593cbc6cbf8df4cf68ad41}{redo\+Name} ()
\begin{DoxyCompactList}\small\item\em return the name of the next redo backup \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07028_a3c1058442967f32933dbbe758686a4e6}\label{a07028_a3c1058442967f32933dbbe758686a4e6}} 
bool \hyperlink{a07028_a3c1058442967f32933dbbe758686a4e6}{undo\+Available} ()
\begin{DoxyCompactList}\small\item\em return if an undo backup is available \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07028_a83bf21d49bd20ebcc27185a77209a87b}\label{a07028_a83bf21d49bd20ebcc27185a77209a87b}} 
bool \hyperlink{a07028_a83bf21d49bd20ebcc27185a77209a87b}{redo\+Available} ()
\begin{DoxyCompactList}\small\item\em return if a redo backup is available \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07028_ad37f7418d7d51d2685ec12c4458d7bf2}\label{a07028_ad37f7418d7d51d2685ec12c4458d7bf2}} 
bool \hyperlink{a07028_ad37f7418d7d51d2685ec12c4458d7bf2}{undo\+Blocked} ()
\begin{DoxyCompactList}\small\item\em return if an undo backup is blocked \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07028_aa88d1543e973e0261dbdd097379f23bf}\label{a07028_aa88d1543e973e0261dbdd097379f23bf}} 
bool \hyperlink{a07028_aa88d1543e973e0261dbdd097379f23bf}{redo\+Blocked} ()
\begin{DoxyCompactList}\small\item\em return if a redo backup is blocked \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07028_a90e0e093c61ea5ba30f9af33b7365903}\label{a07028_a90e0e093c61ea5ba30f9af33b7365903}} 
void \hyperlink{a07028_a90e0e093c61ea5ba30f9af33b7365903}{clear} ()
\begin{DoxyCompactList}\small\item\em remove all backups \end{DoxyCompactList}\item 
void \hyperlink{a07028_a81866f4b3cdbab15b79ce2410b58342e}{set\+Links} (\hyperlink{a00188_af4b4959090eb91720b2f1f4bd6131cfb}{Id\+List} \+\_\+object\+I\+Ds)
\item 
\mbox{\Hypertarget{a07028_a36aff5e9aa6afc2f25d619a29bc7478d}\label{a07028_a36aff5e9aa6afc2f25d619a29bc7478d}} 
\hyperlink{a07032}{Base\+Backup} $\ast$ \hyperlink{a07028_a36aff5e9aa6afc2f25d619a29bc7478d}{current\+State} ()
\begin{DoxyCompactList}\small\item\em return the current state \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07028_a276b7f343f48487a0c1f8782984bb763}\label{a07028_a276b7f343f48487a0c1f8782984bb763}} 
size\+\_\+t \hyperlink{a07028_a276b7f343f48487a0c1f8782984bb763}{max\+Backups} ()
\begin{DoxyCompactList}\small\item\em return the maximum of backups which are saved \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07028_a1e7be2c8f05dad5ad4e0f57b08759a7d}\label{a07028_a1e7be2c8f05dad5ad4e0f57b08759a7d}} 
void \hyperlink{a07028_a1e7be2c8f05dad5ad4e0f57b08759a7d}{set\+Max\+Backups} (size\+\_\+t \+\_\+max)
\begin{DoxyCompactList}\small\item\em set the maximum of saved backups \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a07028_acf068d23fc463a3a0fe9dc2012189602}\label{a07028_acf068d23fc463a3a0fe9dc2012189602}} 
std\+::vector$<$ \hyperlink{a07032}{Base\+Backup} $\ast$$>$ {\bfseries undo\+States\+\_\+}
\item 
\mbox{\Hypertarget{a07028_a995b66813357097442becbe26ec10eed}\label{a07028_a995b66813357097442becbe26ec10eed}} 
std\+::vector$<$ \hyperlink{a07032}{Base\+Backup} $\ast$$>$ {\bfseries redo\+States\+\_\+}
\item 
\mbox{\Hypertarget{a07028_ab2d60cd6de02575e49c17f428c20615e}\label{a07028_ab2d60cd6de02575e49c17f428c20615e}} 
\hyperlink{a07032}{Base\+Backup} $\ast$ {\bfseries current\+State\+\_\+}
\item 
\mbox{\Hypertarget{a07028_aacd9198cec8fd2f223e199f7a364a632}\label{a07028_aacd9198cec8fd2f223e199f7a364a632}} 
\hyperlink{a07044}{Base\+Object\+Data} $\ast$ {\bfseries object\+\_\+}
\item 
\mbox{\Hypertarget{a07028_a645db8af4c05627c203d9589c44e4198}\label{a07028_a645db8af4c05627c203d9589c44e4198}} 
size\+\_\+t {\bfseries max\+Backups\+\_\+}
\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 57 of file Backup\+Data.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a07028_a81866f4b3cdbab15b79ce2410b58342e}\label{a07028_a81866f4b3cdbab15b79ce2410b58342e}} 
\index{Backup\+Data@{Backup\+Data}!set\+Links@{set\+Links}}
\index{set\+Links@{set\+Links}!Backup\+Data@{Backup\+Data}}
\subsubsection{\texorpdfstring{set\+Links()}{setLinks()}}
{\footnotesize\ttfamily void Backup\+Data\+::set\+Links (\begin{DoxyParamCaption}\item[{\hyperlink{a00188_af4b4959090eb91720b2f1f4bd6131cfb}{Id\+List}}]{\+\_\+object\+I\+Ds }\end{DoxyParamCaption})}

add links to other backups for the current state this is used to ensure that the backups are only applied simultaneously 

Definition at line 233 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}
