File: fileserver_8h_source.html

package info (click to toggle)
arc-gui-clients 0.4.6-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 25,484 kB
  • sloc: cpp: 11,077; python: 181; perl: 171; pascal: 165; ansic: 12; makefile: 7
file content (128 lines) | stat: -rw-r--r-- 11,305 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>ARC Graphical Clients: /home/jonas/Development/arc-gui-clients/src/arcstorage-ui/fileserver.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Search" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    </ul>
  </div>
<h1>/home/jonas/Development/arc-gui-clients/src/arcstorage-ui/fileserver.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef FILESERVER_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define FILESERVER_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;QVector&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;QString&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;QVariant&gt;</span>
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 <span class="preprocessor">#include &quot;arcfileelement.h&quot;</span>
<a name="l00009"></a>00009 
<a name="l00010"></a>00010 <span class="keyword">class </span>MainWindow;
<a name="l00011"></a>00011 
<a name="l00013"></a>00013 
<a name="l00019"></a><a class="code" href="classFileServer.html">00019</a> <span class="keyword">class </span><a class="code" href="classFileServer.html" title="Abstract file server class.">FileServer</a> {
<a name="l00020"></a>00020 <span class="keyword">private</span>:
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="keyword">protected</span>:
<a name="l00024"></a><a class="code" href="classFileServer.html#ab281926d224ed2225c718f981841de30">00024</a>     QVector&lt;ARCFileElement*&gt; <a class="code" href="classFileServer.html#ab281926d224ed2225c718f981841de30" title="A list of the files that were last browsed (and are currently displayed in the gui)...">fileList</a>;
<a name="l00025"></a>00025 
<a name="l00027"></a><a class="code" href="classFileServer.html#ae49994aca53280593cbe9f5ed0fe4595">00027</a>     QString <a class="code" href="classFileServer.html#ae49994aca53280593cbe9f5ed0fe4595" title="The current path (that is displayed in the gui).">currentPath</a>;
<a name="l00028"></a>00028 
<a name="l00029"></a>00029     <span class="keywordtype">bool</span> m_notifyParent;
<a name="l00030"></a>00030 
<a name="l00032"></a>00032     <span class="keywordtype">void</span> <a class="code" href="classFileServer.html#a743c89eecaec8afa36cdd4051237576e" title="Clear file list.">clearFileList</a>();
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 <span class="keyword">public</span>:
<a name="l00036"></a>00036     <a class="code" href="classFileServer.html#acf61e415a20375b9c9aec30b1a4abcc8" title="Create a FileServer object.">FileServer</a>();
<a name="l00037"></a>00037 
<a name="l00039"></a>00039     <span class="keywordtype">void</span> <a class="code" href="classFileServer.html#ac68456fef4916731a0941714e770afd8" title="Set flag for notifying parent.">setNotifyParent</a>(<span class="keywordtype">bool</span> flag);
<a name="l00040"></a>00040 
<a name="l00042"></a>00042     <span class="keywordtype">bool</span> <a class="code" href="classFileServer.html#a07f7318446a57f4076dc13587c0379ad" title="return parent notification flag.">getNotifyParent</a>();
<a name="l00043"></a>00043 
<a name="l00045"></a>00045     <span class="keyword">virtual</span> QStringList <a class="code" href="classFileServer.html#ad67f81e9dbd7ebc91937f9f81d463179" title="Returns the column names in the file list (name, size, last change date...). Allows...">getFileInfoLabels</a>() = 0;
<a name="l00046"></a>00046 
<a name="l00048"></a>00048     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFileServer.html#a9af8673249c8eec5730f543138438e8d" title="Reads a new list of files from the server to the filelist.">updateFileList</a>(QString URL) = 0;
<a name="l00049"></a>00049 
<a name="l00051"></a>00051     <span class="keyword">virtual</span> QVector&lt;ARCFileElement*&gt; &amp;<a class="code" href="classFileServer.html#a2d20131e64d0f22edd6776954a84ba01" title="Return a reference to the filelist.">getFileList</a>() = 0;
<a name="l00052"></a>00052 
<a name="l00054"></a>00054     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classFileServer.html#a08ef06edcb11d4bbcf9c519a7abb8f15" title="Go up one folder in the folder structure (cd ..).">goUpOneFolder</a>() = 0;
<a name="l00055"></a>00055 
<a name="l00057"></a>00057     <span class="keyword">virtual</span> QString <a class="code" href="classFileServer.html#a1b6810a7d2c09975f5e5d86b52cac144" title="Get current URL (== file protocol + path).">getCurrentURL</a>() = 0;
<a name="l00058"></a>00058 
<a name="l00060"></a>00060     <span class="keyword">virtual</span> QString <a class="code" href="classFileServer.html#a196d7805a96d3826669f0ea27aa61033" title="Get current path.">getCurrentPath</a>() = 0;
<a name="l00061"></a>00061 
<a name="l00063"></a>00063     <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFileServer.html#a1ff66b187e05b145dc5066fb0c3bf241" title="Get file permissions.">getFilePermissions</a>(QString path) = 0;
<a name="l00064"></a>00064 
<a name="l00066"></a>00066     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFileServer.html#a5a3a31658c22e2bc1c090e8250c38bde" title="Set file permissions.">setFilePermissions</a>(QString path, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> permissions) = 0;
<a name="l00067"></a>00067 
<a name="l00069"></a>00069     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classFileServer.html#ad7fcb6028b2c5b1b632917187eb20d05" title="Copy a file from the server to a local disk.">copyFromServer</a>(QString sourcePath, QString destinationPah) = 0;
<a name="l00070"></a>00070 
<a name="l00072"></a>00072     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classFileServer.html#a246f4f098f498faf267ec833b34c6813" title="Copy a file from local disk to server.">copyToServer</a>(QString sourcePath, QString destinationPah) = 0;
<a name="l00073"></a>00073 
<a name="l00075"></a>00075     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classFileServer.html#a246f4f098f498faf267ec833b34c6813" title="Copy a file from local disk to server.">copyToServer</a>(QList&lt;QUrl&gt; &amp;urlList, QString destinationPath) = 0;
<a name="l00076"></a>00076 
<a name="l00078"></a>00078     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classFileServer.html#ab3486434a1974976dc63c0ee676dce1e" title="Delete a file from the server.">deleteItem</a>(QString path) = 0;
<a name="l00079"></a>00079 
<a name="l00081"></a>00081     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classFileServer.html#ae2a968d9c3dfa6481804cea393a3e458" title="Delete several files from the server.">deleteItems</a>(QStringList&amp; paths) = 0;
<a name="l00082"></a>00082 
<a name="l00084"></a>00084     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classFileServer.html#afcf4d31a63271c340517a74d9cc69fbf" title="Create a folder on the server.">makeDir</a>(QString path) = 0;
<a name="l00085"></a>00085 
<a name="l00087"></a>00087     <span class="keyword">virtual</span> QMap&lt;QString, QString&gt; <a class="code" href="classFileServer.html#ac3f3259a879f01c31e234a375ee877bf" title="Return a property value list of file properties.">fileProperties</a>(QString URL) = 0;
<a name="l00088"></a>00088 
<a name="l00090"></a>00090     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classFileServer.html#a1020f2bc46aabbaac79ee48be6d2f70d" title="Rename a file.">rename</a>(QString fromURL, QString toURL) = 0;
<a name="l00091"></a>00091 
<a name="l00092"></a>00092 };
<a name="l00093"></a>00093 
<a name="l00094"></a>00094 <span class="preprocessor">#endif // FILESERVER_H</span>
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"/><address style="text-align: right;"><small>Generated on 19 Feb 2013 for ARC Graphical Clients by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>