File: qdir-qt3.html

package info (click to toggle)
qt4-x11 4%3A4.8.2%2Bdfsg-11
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 701,696 kB
  • sloc: cpp: 2,686,179; ansic: 375,485; python: 25,859; sh: 19,349; xml: 17,091; perl: 14,765; yacc: 5,383; asm: 5,038; makefile: 1,259; lex: 555; ruby: 526; objc: 347; cs: 112; pascal: 112; php: 54; sed: 34
file content (164 lines) | stat: -rw-r--r-- 14,172 bytes parent folder | download
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qdir.cpp -->
  <title>Qt 4.8: Qt 3 Support Members for QDir</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
  </div>
  <div class="breadcrumb toolblock">
    <ul>
      <li class="first"><a href="index.html">Home</a></li>
      <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtcore.html">QtCore</a></li>
<li>QDir</li>
    </ul>
  </div>
</div>
<div class="content mainContent">
<h1 class="title">Qt 3 Support Members for QDir</h1>
<p><b>The following class members are part of the <a href="qt3support.html">Qt 3 support layer</a>.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
<p><ul><li><a href="qdir.html">QDir class reference</a></li></ul></p>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qdir-qt3.html#absFilePath">absFilePath</a></b> ( const QString &amp; <i>fileName</i>, bool <i>acceptAbsPath</i> = true ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qdir-qt3.html#absPath">absPath</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdir-qt3.html#convertToAbs">convertToAbs</a></b> ()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QFileInfoList </td><td class="memItemRight bottomAlign"><b><a href="qdir-qt3.html#entryInfoList-3">entryInfoList</a></b> ( const QString &amp; <i>nameFilter</i>, Filters <i>filters</i> = NoFilter, SortFlags <i>sort</i> = NoSort ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QStringList </td><td class="memItemRight bottomAlign"><b><a href="qdir-qt3.html#entryList-3">entryList</a></b> ( const QString &amp; <i>nameFilter</i>, Filters <i>filters</i> = NoFilter, SortFlags <i>sort</i> = NoSort ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qdir-qt3.html#matchAllDirs">matchAllDirs</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qdir-qt3.html#mkdir-2">mkdir</a></b> ( const QString &amp; <i>dirName</i>, bool <i>acceptAbsPath</i> ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qdir-qt3.html#nameFilter">nameFilter</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qdir-qt3.html#rmdir-2">rmdir</a></b> ( const QString &amp; <i>dirName</i>, bool <i>acceptAbsPath</i> ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdir-qt3.html#setMatchAllDirs">setMatchAllDirs</a></b> ( bool <i>on</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdir-qt3.html#setNameFilter">setNameFilter</a></b> ( const QString &amp; <i>nameFilter</i> )</td></tr>
</table>
<h2>Static Public Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qdir-qt3.html#cleanDirPath">cleanDirPath</a></b> ( const QString &amp; <i>name</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qdir-qt3.html#convertSeparators">convertSeparators</a></b> ( const QString &amp; <i>pathName</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qdir-qt3.html#currentDirPath">currentDirPath</a></b> ()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qdir-qt3.html#homeDirPath">homeDirPath</a></b> ()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qdir-qt3.html#rootDirPath">rootDirPath</a></b> ()</td></tr>
</table>
<h2>Member Function Documentation</h2>
<!-- $$$absFilePath[overload1]$$$absFilePathconstQString&bool -->
<h3 class="fn"><a name="absFilePath"></a><span class="type"><a href="qstring.html">QString</a></span> QDir::<span class="name">absFilePath</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>fileName</i>, <span class="type">bool</span> <i>acceptAbsPath</i> = true ) const</h3>
<p>Use absoluteFilePath(<i>fileName</i>) instead.</p>
<p>The <i>acceptAbsPath</i> parameter is ignored.</p>
<!-- @@@absFilePath -->
<!-- $$$absPath[overload1]$$$absPath -->
<h3 class="fn"><a name="absPath"></a><span class="type"><a href="qstring.html">QString</a></span> QDir::<span class="name">absPath</span> () const</h3>
<p>Use <a href="qdir.html#absolutePath">absolutePath</a>() instead.</p>
<!-- @@@absPath -->
<!-- $$$cleanDirPath[overload1]$$$cleanDirPathconstQString& -->
<h3 class="fn"><a name="cleanDirPath"></a><span class="type"><a href="qstring.html">QString</a></span> QDir::<span class="name">cleanDirPath</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>name</i> )<tt> [static]</tt></h3>
<p>Use <a href="qdir.html#cleanPath">cleanPath</a>() instead.</p>
<!-- @@@cleanDirPath -->
<!-- $$$convertSeparators[overload1]$$$convertSeparatorsconstQString& -->
<h3 class="fn"><a name="convertSeparators"></a><span class="type"><a href="qstring.html">QString</a></span> QDir::<span class="name">convertSeparators</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>pathName</i> )<tt> [static]</tt></h3>
<p>Use <a href="qdir.html#toNativeSeparators">QDir::toNativeSeparators</a>() instead.</p>
<!-- @@@convertSeparators -->
<!-- $$$convertToAbs[overload1]$$$convertToAbs -->
<h3 class="fn"><a name="convertToAbs"></a><span class="type">void</span> QDir::<span class="name">convertToAbs</span> ()</h3>
<p>Use <a href="qdir.html#makeAbsolute">makeAbsolute</a>() instead.</p>
<!-- @@@convertToAbs -->
<!-- $$$currentDirPath[overload1]$$$currentDirPath -->
<h3 class="fn"><a name="currentDirPath"></a><span class="type"><a href="qstring.html">QString</a></span> QDir::<span class="name">currentDirPath</span> ()<tt> [static]</tt></h3>
<p>Returns the absolute path of the application's current directory.</p>
<p>Use <a href="qdir.html#currentPath">currentPath</a>() instead.</p>
<p><b>See also </b><a href="qdir.html#currentPath">currentPath</a>() and <a href="qdir.html#setCurrent">setCurrent</a>().</p>
<!-- @@@currentDirPath -->
<!-- $$$entryInfoList$$$entryInfoListconstQString&FiltersSortFlags -->
<h3 class="fn"><a name="entryInfoList-3"></a><span class="type"><a href="qfileinfo.html#QFileInfoList-typedef">QFileInfoList</a></span> QDir::<span class="name">entryInfoList</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>nameFilter</i>, <span class="type"><a href="qdir.html#Filter-enum">Filters</a></span> <i>filters</i> = NoFilter, <span class="type"><a href="qdir.html#SortFlag-enum">SortFlags</a></span> <i>sort</i> = NoSort ) const</h3>
<p>This is an overloaded function.</p>
<p>Use the overload that takes a name filter string list as first argument instead of a combination of attribute filter flags.</p>
<!-- @@@entryInfoList -->
<!-- $$$entryList$$$entryListconstQString&FiltersSortFlags -->
<h3 class="fn"><a name="entryList-3"></a><span class="type"><a href="qstringlist.html">QStringList</a></span> QDir::<span class="name">entryList</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>nameFilter</i>, <span class="type"><a href="qdir.html#Filter-enum">Filters</a></span> <i>filters</i> = NoFilter, <span class="type"><a href="qdir.html#SortFlag-enum">SortFlags</a></span> <i>sort</i> = NoSort ) const</h3>
<p>This is an overloaded function.</p>
<p>Use the overload that takes a name filter string list as first argument instead of a combination of attribute filter flags.</p>
<!-- @@@entryList -->
<!-- $$$homeDirPath[overload1]$$$homeDirPath -->
<h3 class="fn"><a name="homeDirPath"></a><span class="type"><a href="qstring.html">QString</a></span> QDir::<span class="name">homeDirPath</span> ()<tt> [static]</tt></h3>
<p>Returns the absolute path of the user's home directory.</p>
<p>Use <a href="qdir.html#homePath">homePath</a>() instead.</p>
<p><b>See also </b><a href="qdir.html#homePath">homePath</a>().</p>
<!-- @@@homeDirPath -->
<!-- $$$matchAllDirs[overload1]$$$matchAllDirs -->
<h3 class="fn"><a name="matchAllDirs"></a><span class="type">bool</span> QDir::<span class="name">matchAllDirs</span> () const</h3>
<p>Use <a href="qdir.html#filter">filter</a>() &amp; <a href="qdir.html#Filter-enum">AllDirs</a> instead.</p>
<p><b>See also </b><a href="qdir-qt3.html#setMatchAllDirs">setMatchAllDirs</a>().</p>
<!-- @@@matchAllDirs -->
<!-- $$$mkdir$$$mkdirconstQString&bool -->
<h3 class="fn"><a name="mkdir-2"></a><span class="type">bool</span> QDir::<span class="name">mkdir</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>dirName</i>, <span class="type">bool</span> <i>acceptAbsPath</i> ) const</h3>
<p>Use mkdir(<i>dirName</i>) instead.</p>
<p>The <i>acceptAbsPath</i> parameter is ignored.</p>
<!-- @@@mkdir -->
<!-- $$$nameFilter[overload1]$$$nameFilter -->
<h3 class="fn"><a name="nameFilter"></a><span class="type"><a href="qstring.html">QString</a></span> QDir::<span class="name">nameFilter</span> () const</h3>
<p>Use <a href="qdir.html#nameFilters">nameFilters</a>() instead.</p>
<p><b>See also </b><a href="qdir-qt3.html#setNameFilter">setNameFilter</a>().</p>
<!-- @@@nameFilter -->
<!-- $$$rmdir$$$rmdirconstQString&bool -->
<h3 class="fn"><a name="rmdir-2"></a><span class="type">bool</span> QDir::<span class="name">rmdir</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>dirName</i>, <span class="type">bool</span> <i>acceptAbsPath</i> ) const</h3>
<p>Use rmdir(<i>dirName</i>) instead.</p>
<p>The <i>acceptAbsPath</i> parameter is ignored.</p>
<!-- @@@rmdir -->
<!-- $$$rootDirPath[overload1]$$$rootDirPath -->
<h3 class="fn"><a name="rootDirPath"></a><span class="type"><a href="qstring.html">QString</a></span> QDir::<span class="name">rootDirPath</span> ()<tt> [static]</tt></h3>
<p>Returns the absolute path of the root directory.</p>
<p>Use <a href="qdir.html#rootPath">rootPath</a>() instead.</p>
<p><b>See also </b><a href="qdir.html#rootPath">rootPath</a>().</p>
<!-- @@@rootDirPath -->
<!-- $$$setMatchAllDirs[overload1]$$$setMatchAllDirsbool -->
<h3 class="fn"><a name="setMatchAllDirs"></a><span class="type">void</span> QDir::<span class="name">setMatchAllDirs</span> ( <span class="type">bool</span> <i>on</i> )</h3>
<p>Use <a href="qdir.html#setFilter">setFilter</a>() instead.</p>
<p><b>See also </b><a href="qdir-qt3.html#matchAllDirs">matchAllDirs</a>().</p>
<!-- @@@setMatchAllDirs -->
<!-- $$$setNameFilter[overload1]$$$setNameFilterconstQString& -->
<h3 class="fn"><a name="setNameFilter"></a><span class="type">void</span> QDir::<span class="name">setNameFilter</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>nameFilter</i> )</h3>
<p>Use <a href="qdir.html#setNameFilters">setNameFilters</a>() instead.</p>
<p>The <i>nameFilter</i> is a wildcard (globbing) filter that understands &quot;*&quot; and &quot;?&quot; wildcards. (See <a href="qregexp.html#qregexp-wildcard-matching">QRegExp wildcard matching</a>.) You may specify several filter entries, each separated by spaces or by semicolons.</p>
<p>For example, if you want <a href="qdir.html#entryList">entryList</a>() and <a href="qdir.html#entryInfoList">entryInfoList</a>() to list all files ending with either &quot;.cpp&quot; or &quot;.h&quot;, you would use either dir.setNameFilters(&quot;*.cpp *.h&quot;) or dir.setNameFilters(&quot;*.cpp;*.h&quot;).</p>
<p>For example, if you have code like</p>
<pre class="cpp"> QString filter = &quot;*.cpp *.cxx *.cc&quot;;
 dir.setNameFilter(filter);</pre>
<p>you can rewrite it as</p>
<pre class="cpp"> <span class="type"><a href="qstring.html">QString</a></span> filter <span class="operator">=</span> <span class="string">&quot;*.cpp *.cxx *.cc&quot;</span>;
 dir<span class="operator">.</span><a href="qdir.html#setNameFilters">setNameFilters</a>(filter<span class="operator">.</span>split(<span class="char">' '</span>));</pre>
<p><b>See also </b><a href="qdir-qt3.html#nameFilter">nameFilter</a>().</p>
<!-- @@@setNameFilter -->
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2012 Nokia Corporation and/or its
      subsidiaries. Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
</div>
</body>
</html>