\hypertarget{classSRMFileServer}{
\section{SRMFileServer Class Reference}
\label{classSRMFileServer}\index{SRMFileServer@{SRMFileServer}}
}


ARC File server class.  


{\ttfamily \#include $<$srmfileserver.h$>$}Inheritance diagram for SRMFileServer::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{classSRMFileServer}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classSRMFileServer_a0ec9b69cb52fc2da5498e4c2eb098557}{
void \hyperlink{classSRMFileServer_a0ec9b69cb52fc2da5498e4c2eb098557}{onCompleted} (\hyperlink{classFileTransfer}{FileTransfer} $\ast$fileTransfer, bool success, QString error)}
\label{classSRMFileServer_a0ec9b69cb52fc2da5498e4c2eb098557}

\begin{DoxyCompactList}\small\item\em This slot is used by \hyperlink{classFileTransfer}{FileTransfer} object to \char`\"{}call\char`\"{} home when a transfer has completed. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classSRMFileServer_ada1e136c3ac686c256f1e39bd7aff37b}{
void \hyperlink{classSRMFileServer_ada1e136c3ac686c256f1e39bd7aff37b}{onFileListFinished} (bool error, QString errorMsg)}
\label{classSRMFileServer_ada1e136c3ac686c256f1e39bd7aff37b}

\begin{DoxyCompactList}\small\item\em Called when the \hyperlink{classSRMFileServer_ae62113bc64b88a373ca1d1a6bf63f5e9}{updateFileList()} has completed on the background thread. \item\end{DoxyCompactList}\item 
\hypertarget{classSRMFileServer_aa47fa11304096c236aa8607c0fe449af}{
void \hyperlink{classSRMFileServer_aa47fa11304096c236aa8607c0fe449af}{onError} (QString errorStr)}
\label{classSRMFileServer_aa47fa11304096c236aa8607c0fe449af}

\begin{DoxyCompactList}\small\item\em Called when an error occurs. \item\end{DoxyCompactList}\item 
\hypertarget{classSRMFileServer_a753cbbba44e23bfe284de5f0e7214300}{
void \hyperlink{classSRMFileServer_a753cbbba44e23bfe284de5f0e7214300}{onCopyFromServerFinished} (bool error)}
\label{classSRMFileServer_a753cbbba44e23bfe284de5f0e7214300}

\begin{DoxyCompactList}\small\item\em Called when a file transfer has completed. \item\end{DoxyCompactList}\item 
\hypertarget{classSRMFileServer_a8560848c796ddccaaf1fe0df33ba420d}{
void \hyperlink{classSRMFileServer_a8560848c796ddccaaf1fe0df33ba420d}{onDeleteFinished} (bool error)}
\label{classSRMFileServer_a8560848c796ddccaaf1fe0df33ba420d}

\begin{DoxyCompactList}\small\item\em Called when a delete operation has completed. (NOT IMPLEMENTED YET). \item\end{DoxyCompactList}\item 
\hypertarget{classSRMFileServer_af2e7bc3e30284f89c1041cc4a05b18c6}{
void \hyperlink{classSRMFileServer_af2e7bc3e30284f89c1041cc4a05b18c6}{onMakeDirFinished} (bool error)}
\label{classSRMFileServer_af2e7bc3e30284f89c1041cc4a05b18c6}

\begin{DoxyCompactList}\small\item\em Called when a makedir operation has completed. (NOT IMPLEMENTED YET). \item\end{DoxyCompactList}\item 
\hypertarget{classSRMFileServer_aa75093981facdaf010f8763696b62c80}{
void \hyperlink{classSRMFileServer_aa75093981facdaf010f8763696b62c80}{onCopyToServerFinished} (bool error, QList$<$ QString $>$ \&failedFiles)}
\label{classSRMFileServer_aa75093981facdaf010f8763696b62c80}

\begin{DoxyCompactList}\small\item\em Called when a copy to server operation has completed. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classSRMFileServer_a183a9458ddef496ede619c811e6266fd}{
\hyperlink{classSRMFileServer_a183a9458ddef496ede619c811e6266fd}{SRMFileServer} ()}
\label{classSRMFileServer_a183a9458ddef496ede619c811e6266fd}

\begin{DoxyCompactList}\small\item\em Create a \hyperlink{classSRMFileServer}{SRMFileServer} object. \item\end{DoxyCompactList}\item 
\hypertarget{classSRMFileServer_a6812755b71297a459d62898af7a15c28}{
QStringList \hyperlink{classSRMFileServer_a6812755b71297a459d62898af7a15c28}{getFileInfoLabels} ()}
\label{classSRMFileServer_a6812755b71297a459d62898af7a15c28}

\begin{DoxyCompactList}\small\item\em Returns the column names in the file list (name, size, last change date...). Allows different protocols to display their own info. \item\end{DoxyCompactList}\item 
\hypertarget{classSRMFileServer_ae62113bc64b88a373ca1d1a6bf63f5e9}{
void \hyperlink{classSRMFileServer_ae62113bc64b88a373ca1d1a6bf63f5e9}{updateFileList} (QString URL)}
\label{classSRMFileServer_ae62113bc64b88a373ca1d1a6bf63f5e9}

\begin{DoxyCompactList}\small\item\em Reads a new list of files from the server to the filelist. \item\end{DoxyCompactList}\item 
\hypertarget{classSRMFileServer_a88af4263b494933ba8c36df74fc8b881}{
QVector$<$ \hyperlink{classARCFileElement}{ARCFileElement} $\ast$ $>$ \& \hyperlink{classSRMFileServer_a88af4263b494933ba8c36df74fc8b881}{getFileList} ()}
\label{classSRMFileServer_a88af4263b494933ba8c36df74fc8b881}

\begin{DoxyCompactList}\small\item\em Return a reference to the filelist. \item\end{DoxyCompactList}\item 
\hypertarget{classSRMFileServer_a64a1cbb08c3c01c7b3883465734f7392}{
bool \hyperlink{classSRMFileServer_a64a1cbb08c3c01c7b3883465734f7392}{goUpOneFolder} ()}
\label{classSRMFileServer_a64a1cbb08c3c01c7b3883465734f7392}

\begin{DoxyCompactList}\small\item\em Go up one folder in the folder structure (cd ..). \item\end{DoxyCompactList}\item 
\hypertarget{classSRMFileServer_ac110819186c64c40325729880c843621}{
QString \hyperlink{classSRMFileServer_ac110819186c64c40325729880c843621}{getCurrentURL} ()}
\label{classSRMFileServer_ac110819186c64c40325729880c843621}

\begin{DoxyCompactList}\small\item\em Get current URL (== file protocol + path). \item\end{DoxyCompactList}\item 
\hypertarget{classSRMFileServer_ac574b7ae54dfc22edd64096e39762435}{
QString \hyperlink{classSRMFileServer_ac574b7ae54dfc22edd64096e39762435}{getCurrentPath} ()}
\label{classSRMFileServer_ac574b7ae54dfc22edd64096e39762435}

\begin{DoxyCompactList}\small\item\em Get current path. \item\end{DoxyCompactList}\item 
\hypertarget{classSRMFileServer_abd358eaa3854af337d8d3f5c55bb1d62}{
bool \hyperlink{classSRMFileServer_abd358eaa3854af337d8d3f5c55bb1d62}{copyFromServer} (QString sourcePath, QString destinationPath)}
\label{classSRMFileServer_abd358eaa3854af337d8d3f5c55bb1d62}

\begin{DoxyCompactList}\small\item\em Copy a file from the server to a local disk. \item\end{DoxyCompactList}\item 
\hypertarget{classSRMFileServer_a8dacff39341e55e6a625c2a3cec7e304}{
bool \hyperlink{classSRMFileServer_a8dacff39341e55e6a625c2a3cec7e304}{copyToServer} (QString sourcePath, QString destinationPath)}
\label{classSRMFileServer_a8dacff39341e55e6a625c2a3cec7e304}

\begin{DoxyCompactList}\small\item\em Copy a file from local disk to server. \item\end{DoxyCompactList}\item 
\hypertarget{classSRMFileServer_a351a44e983b4328c79b8431b587065f2}{
bool \hyperlink{classSRMFileServer_a351a44e983b4328c79b8431b587065f2}{copyToServer} (QList$<$ QUrl $>$ \&urlList, QString destinationPath)}
\label{classSRMFileServer_a351a44e983b4328c79b8431b587065f2}

\begin{DoxyCompactList}\small\item\em Copy a list of files from local disk to server. \item\end{DoxyCompactList}\item 
\hypertarget{classSRMFileServer_aca44a1186fc5dfa9397a51641666e8a3}{
bool \hyperlink{classSRMFileServer_aca44a1186fc5dfa9397a51641666e8a3}{deleteItem} (QString URL)}
\label{classSRMFileServer_aca44a1186fc5dfa9397a51641666e8a3}

\begin{DoxyCompactList}\small\item\em Delete a file from the server. \item\end{DoxyCompactList}\item 
\hypertarget{classSRMFileServer_a9dfd98573183e92d0ab738d5b122d904}{
bool \hyperlink{classSRMFileServer_a9dfd98573183e92d0ab738d5b122d904}{deleteItems} (QStringList \&URLs)}
\label{classSRMFileServer_a9dfd98573183e92d0ab738d5b122d904}

\begin{DoxyCompactList}\small\item\em Delete several files from the server. \item\end{DoxyCompactList}\item 
\hypertarget{classSRMFileServer_a1794dd53e60d942c4e5bf61256bc49c4}{
bool \hyperlink{classSRMFileServer_a1794dd53e60d942c4e5bf61256bc49c4}{makeDir} (QString path)}
\label{classSRMFileServer_a1794dd53e60d942c4e5bf61256bc49c4}

\begin{DoxyCompactList}\small\item\em Create a folder on the server. \item\end{DoxyCompactList}\item 
\hypertarget{classSRMFileServer_a75c28896abcd6b20ef9283d4f3699c5a}{
unsigned int \hyperlink{classSRMFileServer_a75c28896abcd6b20ef9283d4f3699c5a}{getFilePermissions} (QString path)}
\label{classSRMFileServer_a75c28896abcd6b20ef9283d4f3699c5a}

\begin{DoxyCompactList}\small\item\em Get file permissions. \item\end{DoxyCompactList}\item 
\hypertarget{classSRMFileServer_a1acb2a7f4b03e74d98b9891766783f95}{
void \hyperlink{classSRMFileServer_a1acb2a7f4b03e74d98b9891766783f95}{setFilePermissions} (QString path, unsigned int permissions)}
\label{classSRMFileServer_a1acb2a7f4b03e74d98b9891766783f95}

\begin{DoxyCompactList}\small\item\em Set file permissions. \item\end{DoxyCompactList}\item 
\hypertarget{classSRMFileServer_a6404f26a6cda75858765214bbc7cf29e}{
QMap$<$ QString, QString $>$ \hyperlink{classSRMFileServer_a6404f26a6cda75858765214bbc7cf29e}{fileProperties} (QString URL)}
\label{classSRMFileServer_a6404f26a6cda75858765214bbc7cf29e}

\begin{DoxyCompactList}\small\item\em Return a property value list of file properties. \item\end{DoxyCompactList}\item 
\hypertarget{classSRMFileServer_a1c14b7859ab465ddd79faac231d93606}{
bool \hyperlink{classSRMFileServer_a1c14b7859ab465ddd79faac231d93606}{rename} (QString fromURL, QString toURL)}
\label{classSRMFileServer_a1c14b7859ab465ddd79faac231d93606}

\begin{DoxyCompactList}\small\item\em Rename a file. \item\end{DoxyCompactList}\item 
void \hyperlink{classSRMFileServer_acf1a115a2292570aa2d93e1646231b31}{startUpdateFileList} (QString URL)
\begin{DoxyCompactList}\small\item\em Starts a background file file list update. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
ARC File server class. 

\subsection{Member Function Documentation}
\hypertarget{classSRMFileServer_acf1a115a2292570aa2d93e1646231b31}{
\index{SRMFileServer@{SRMFileServer}!startUpdateFileList@{startUpdateFileList}}
\index{startUpdateFileList@{startUpdateFileList}!SRMFileServer@{SRMFileServer}}
\subsubsection[{startUpdateFileList}]{\setlength{\rightskip}{0pt plus 5cm}void SRMFileServer::startUpdateFileList (QString {\em URL})}}
\label{classSRMFileServer_acf1a115a2292570aa2d93e1646231b31}


Starts a background file file list update. This calls the \hyperlink{classSRMFileServer_ae62113bc64b88a373ca1d1a6bf63f5e9}{updateFileList()} method on a background thread. When completed The \hyperlink{classSRMFileServer_ada1e136c3ac686c256f1e39bd7aff37b}{onFileListFinished()} method is called. 
\begin{DoxyParams}{Parameters}
\item[{\em URL}]to pass to the \hyperlink{classSRMFileServer_ae62113bc64b88a373ca1d1a6bf63f5e9}{updateFileList()} method. \end{DoxyParams}


The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/jonas/Development/arc-\/gui-\/clients/src/arcstorage-\/ui/srmfileserver.h\item 
/home/jonas/Development/arc-\/gui-\/clients/src/arcstorage-\/ui/srmfileserver.cpp\end{DoxyCompactItemize}
