classrawfilesyncsource.tex
来自「This SDK allows to integrate a syncml st」· TEX 代码 · 共 91 行
TEX
91 行
\section{RawFileSyncSource Class Reference}\label{classRawFileSyncSource}\index{RawFileSyncSource@{RawFileSyncSource}}In contrast to the \doxyref{FileSyncSource}{p.}{classFileSyncSource} this class does not wrap the file content and attributes in an XML format when exchanging it with the server. {\tt \#include $<$RawFileSyncSource.h$>$}Inheritance diagram for RawFileSyncSource:\nopagebreak\begin{figure}[H]\begin{center}\leavevmode\includegraphics[width=75pt]{classRawFileSyncSource__inherit__graph}\end{center}\end{figure}Collaboration diagram for RawFileSyncSource:\nopagebreak\begin{figure}[H]\begin{center}\leavevmode\includegraphics[width=130pt]{classRawFileSyncSource__coll__graph}\end{center}\end{figure}\subsection*{Public Member Functions}\begin{CompactItemize}\item \textbf{RawFileSyncSource} (const WCHAR $\ast$name, {\bf SyncSourceConfig} $\ast$sc)\label{classRawFileSyncSource_1b3132ced0f135dc61fc038b39d79e9c}\item int {\bf addItem} (SyncItem \&item)\begin{CompactList}\small\item\em Called by the sync engine to add an item that the server has sent. \item\end{CompactList}\item int {\bf updateItem} (SyncItem \&item)\begin{CompactList}\small\item\em Called by the sync engine to update an item that the source already should have. \item\end{CompactList}\end{CompactItemize}\subsection*{Protected Member Functions}\begin{CompactItemize}\item bool \textbf{setItemData} (SyncItem $\ast$syncItem)\label{classRawFileSyncSource_35c3ffeb25c859c6ff70bf6502b1a9b7}\end{CompactItemize}\subsection{Detailed Description}In contrast to the \doxyref{FileSyncSource}{p.}{classFileSyncSource} this class does not wrap the file content and attributes in an XML format when exchanging it with the server. Therefore it can be used as a peer for a servers addressbook or calendar URIs.The type of the items is taken from the sync source type property. \subsection{Member Function Documentation}\index{RawFileSyncSource@{RawFileSyncSource}!addItem@{addItem}}\index{addItem@{addItem}!RawFileSyncSource@{RawFileSyncSource}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int RawFileSyncSource::addItem (SyncItem \& {\em item})\hspace{0.3cm}{\tt [virtual]}}\label{classRawFileSyncSource_51789448b478a39a4218e15fd71b685f}Called by the sync engine to add an item that the server has sent. The sync source is expected to add it to its database, then set the key to the local key assigned to the new item. Alternatively the sync source can match the new item against one of the existing items and return that key.\begin{Desc}\item[Parameters:]\begin{description}\item[{\em item}]the item as sent by the server \end{description}\end{Desc}\begin{Desc}\item[Returns:]SyncML status code \end{Desc}Reimplemented from {\bf FileSyncSource} \doxyref{}{p.}{classFileSyncSource_0a59b49757b5767865e9d868abff693c}.\index{RawFileSyncSource@{RawFileSyncSource}!updateItem@{updateItem}}\index{updateItem@{updateItem}!RawFileSyncSource@{RawFileSyncSource}}\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int RawFileSyncSource::updateItem (SyncItem \& {\em item})\hspace{0.3cm}{\tt [virtual]}}\label{classRawFileSyncSource_c6c7478380b6c8794f8914d75a2e2957}Called by the sync engine to update an item that the source already should have. The item's key is the local key of that item.\begin{Desc}\item[Parameters:]\begin{description}\item[{\em item}]the item as sent by the server \end{description}\end{Desc}\begin{Desc}\item[Returns:]SyncML status code \end{Desc}Reimplemented from {\bf FileSyncSource} \doxyref{}{p.}{classFileSyncSource_3cfc67d2d4906ffd0ecc244ba074bb80}.The documentation for this class was generated from the following file:\begin{CompactItemize}\item src/include/common/client/RawFileSyncSource.h\end{CompactItemize}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?