36
30
<a name="l00011"></a>00011 <span class="comment"> * General Public License for more details.</span>
37
31
<a name="l00012"></a>00012 <span class="comment"> *</span>
38
32
<a name="l00013"></a>00013 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
39
<a name="l00014"></a>00014 <span class="comment"> * along with this program; if not, write to the Free Software</span>
40
<a name="l00015"></a>00015 <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston,</span>
41
<a name="l00016"></a>00016 <span class="comment"> * MA 02111-1307 USA</span>
42
<a name="l00017"></a>00017 <span class="comment"> *</span>
43
<a name="l00018"></a>00018 <span class="comment"> *********************************************************************/</span>
44
<a name="l00019"></a>00019
45
<a name="l00020"></a>00020 <span class="preprocessor">#ifndef SCHROOT_LISTMOUNTS_MAIN_H</span>
46
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define SCHROOT_LISTMOUNTS_MAIN_H</span>
47
<a name="l00022"></a>00022 <span class="preprocessor"></span>
48
<a name="l00023"></a>00023 <span class="preprocessor">#include <<a class="code" href="schroot-base-main_8h.html">schroot-base/schroot-base-main.h</a>></span>
49
<a name="l00024"></a>00024
50
<a name="l00025"></a>00025 <span class="preprocessor">#include <<a class="code" href="schroot-listmounts-options_8h.html">schroot-listmounts/schroot-listmounts-options.h</a>></span>
51
<a name="l00026"></a>00026
52
<a name="l00027"></a>00027 <span class="preprocessor">#include <<a class="codeRef" doxygen="sbuild.tag:/tmp/sr/schroot-1.1.5/doc/sbuild/html/" href="/tmp/sr/schroot-1.1.5/doc/sbuild/html/sbuild-custom-error_8h.html">sbuild/sbuild-custom-error.h</a>></span>
53
<a name="l00028"></a>00028
54
<a name="l00029"></a><a class="code" href="namespaceschroot__listmounts.html">00029</a> <span class="keyword">namespace </span>schroot_listmounts
55
<a name="l00030"></a>00030 {
56
<a name="l00031"></a>00031
57
<a name="l00035"></a><a class="code" href="classschroot__listmounts_1_1main.html">00035</a> <span class="keyword">class </span><a class="code" href="classschroot__listmounts_1_1main.html" title="Frontend for schroot.">main</a> : <span class="keyword">public</span> schroot_base::<a class="code" href="classschroot__listmounts_1_1main.html" title="Frontend for schroot.">main</a>
58
<a name="l00036"></a>00036 {
59
<a name="l00037"></a>00037 <span class="keyword">public</span>:
60
<a name="l00039"></a><a class="code" href="classschroot__listmounts_1_1main.html#307c6e0e872cee2b5c37e1cba0d930d9">00039</a> <span class="keyword">enum</span> <a class="code" href="classschroot__listmounts_1_1main.html#307c6e0e872cee2b5c37e1cba0d930d9" title="Error codes.">error_code</a>
61
<a name="l00040"></a>00040 {
62
<a name="l00041"></a><a class="code" href="classschroot__listmounts_1_1main.html#307c6e0e872cee2b5c37e1cba0d930d95b7e611a6a00157da0c5802223589b96">00041</a> <a class="code" href="classschroot__listmounts_1_1main.html#307c6e0e872cee2b5c37e1cba0d930d95b7e611a6a00157da0c5802223589b96" title="Failed to find file.">FIND</a>,
63
<a name="l00042"></a><a class="code" href="classschroot__listmounts_1_1main.html#307c6e0e872cee2b5c37e1cba0d930d9c4f73f79c91f96db2d42d093b83403ec">00042</a> <a class="code" href="classschroot__listmounts_1_1main.html#307c6e0e872cee2b5c37e1cba0d930d9c4f73f79c91f96db2d42d093b83403ec" title="Failed to open file.">OPEN</a>,
64
<a name="l00043"></a><a class="code" href="classschroot__listmounts_1_1main.html#307c6e0e872cee2b5c37e1cba0d930d94e0b6163f30bdb2b8828e684434ebc74">00043</a> <a class="code" href="classschroot__listmounts_1_1main.html#307c6e0e872cee2b5c37e1cba0d930d94e0b6163f30bdb2b8828e684434ebc74" title="Failed to close file.">CLOSE</a>
65
<a name="l00044"></a>00044 };
33
<a name="l00014"></a>00014 <span class="comment"> * along with this program. If not, see</span>
34
<a name="l00015"></a>00015 <span class="comment"> * <http://www.gnu.org/licenses/>.</span>
35
<a name="l00016"></a>00016 <span class="comment"> *</span>
36
<a name="l00017"></a>00017 <span class="comment"> *********************************************************************/</span>
37
<a name="l00018"></a>00018
38
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef SCHROOT_LISTMOUNTS_MAIN_H</span>
39
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define SCHROOT_LISTMOUNTS_MAIN_H</span>
40
<a name="l00021"></a>00021 <span class="preprocessor"></span>
41
<a name="l00022"></a>00022 <span class="preprocessor">#include <<a class="code" href="schroot-base-main_8h.html">schroot-base/schroot-base-main.h</a>></span>
42
<a name="l00023"></a>00023
43
<a name="l00024"></a>00024 <span class="preprocessor">#include <<a class="code" href="schroot-listmounts-options_8h.html">schroot-listmounts/schroot-listmounts-options.h</a>></span>
44
<a name="l00025"></a>00025
45
<a name="l00026"></a>00026 <span class="preprocessor">#include <<a class="codeRef" doxygen="sbuild.tag:/tmp/sb/schroot/doc/sbuild/html/" href="/tmp/sb/schroot/doc/sbuild/html/sbuild-custom-error_8h.html">sbuild/sbuild-custom-error.h</a>></span>
46
<a name="l00027"></a>00027
47
<a name="l00028"></a><a class="code" href="namespaceschroot__listmounts.html">00028</a> <span class="keyword">namespace </span>schroot_listmounts
48
<a name="l00029"></a>00029 {
49
<a name="l00030"></a>00030
50
<a name="l00034"></a><a class="code" href="classschroot__listmounts_1_1main.html">00034</a> <span class="keyword">class </span><a class="code" href="classschroot__listmounts_1_1main.html" title="Frontend for schroot.">main</a> : <span class="keyword">public</span> schroot_base::<a class="code" href="classschroot__listmounts_1_1main.html" title="Frontend for schroot.">main</a>
51
<a name="l00035"></a>00035 {
52
<a name="l00036"></a>00036 <span class="keyword">public</span>:
53
<a name="l00038"></a><a class="code" href="classschroot__listmounts_1_1main.html#307c6e0e872cee2b5c37e1cba0d930d9">00038</a> <span class="keyword">enum</span> <a class="code" href="classschroot__listmounts_1_1main.html#307c6e0e872cee2b5c37e1cba0d930d9" title="Error codes.">error_code</a>
54
<a name="l00039"></a>00039 {
55
<a name="l00040"></a><a class="code" href="classschroot__listmounts_1_1main.html#307c6e0e872cee2b5c37e1cba0d930d95b7e611a6a00157da0c5802223589b96">00040</a> <a class="code" href="classschroot__listmounts_1_1main.html#307c6e0e872cee2b5c37e1cba0d930d95b7e611a6a00157da0c5802223589b96" title="Failed to find file.">FIND</a>
56
<a name="l00041"></a>00041 };
57
<a name="l00042"></a>00042
58
<a name="l00044"></a><a class="code" href="classschroot__listmounts_1_1main.html#75ed48a8eed541e6d4a1b23afbbf9eb6">00044</a> <span class="keyword">typedef</span> <a class="codeRef" doxygen="sbuild.tag:/tmp/sb/schroot/doc/sbuild/html/" href="/tmp/sb/schroot/doc/sbuild/html/classsbuild_1_1custom__error.html">sbuild::custom_error<error_code></a> <a class="codeRef" doxygen="sbuild.tag:/tmp/sb/schroot/doc/sbuild/html/" href="/tmp/sb/schroot/doc/sbuild/html/classsbuild_1_1custom__error.html">error</a>;
66
59
<a name="l00045"></a>00045
67
<a name="l00047"></a><a class="code" href="classschroot__listmounts_1_1main.html#75ed48a8eed541e6d4a1b23afbbf9eb6">00047</a> <span class="keyword">typedef</span> <a class="codeRef" doxygen="sbuild.tag:/tmp/sr/schroot-1.1.5/doc/sbuild/html/" href="/tmp/sr/schroot-1.1.5/doc/sbuild/html/classsbuild_1_1custom__error.html">sbuild::custom_error<error_code></a> <a class="codeRef" doxygen="sbuild.tag:/tmp/sr/schroot-1.1.5/doc/sbuild/html/" href="/tmp/sr/schroot-1.1.5/doc/sbuild/html/classsbuild_1_1custom__error.html">error</a>;
68
<a name="l00048"></a>00048
69
<a name="l00054"></a>00054 <a class="code" href="classschroot__listmounts_1_1main.html#e677b87c3fb420faf53007994ac8b6af" title="The constructor.">main</a> (<a class="code" href="classschroot__listmounts_1_1options.html#dd79e62137f08126252143ccf63dc429" title="A shared_ptr to an options object.">options::ptr</a>& <a class="code" href="classschroot__listmounts_1_1options.html" title="schroot-listmounts command-line options.">options</a>);
60
<a name="l00051"></a>00051 <a class="code" href="classschroot__listmounts_1_1main.html#e677b87c3fb420faf53007994ac8b6af" title="The constructor.">main</a> (<a class="code" href="classschroot__listmounts_1_1options.html#dd79e62137f08126252143ccf63dc429" title="A shared_ptr to an options object.">options::ptr</a>& <a class="code" href="classschroot__listmounts_1_1options.html" title="schroot-listmounts command-line options.">options</a>);
61
<a name="l00052"></a>00052
62
<a name="l00054"></a>00054 <span class="keyword">virtual</span> <a class="code" href="classschroot__listmounts_1_1main.html#4444e261c1a635e1aab12e00e5b95f5a" title="The destructor.">~main</a> ();
70
63
<a name="l00055"></a>00055
71
<a name="l00057"></a>00057 <span class="keyword">virtual</span> <a class="code" href="classschroot__listmounts_1_1main.html#4444e261c1a635e1aab12e00e5b95f5a" title="The destructor.">~main</a> ();
72
<a name="l00058"></a>00058
73
<a name="l00059"></a>00059 <span class="keyword">private</span>:
74
<a name="l00066"></a>00066 <a class="codeRef" doxygen="sbuild.tag:/tmp/sr/schroot-1.1.5/doc/sbuild/html/" href="/tmp/sr/schroot-1.1.5/doc/sbuild/html/namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f">sbuild::string_list</a>
75
<a name="l00067"></a>00067 <a class="code" href="classschroot__listmounts_1_1main.html#04b1ad4d9bb9272e2d682552d53a8ef8" title="List mounts (internal helper).">list_mounts</a> (std::string <span class="keyword">const</span>& mountfile) <span class="keyword">const</span>;
76
<a name="l00068"></a>00068
77
<a name="l00072"></a>00072 <span class="keyword">virtual</span> <span class="keywordtype">void</span>
78
<a name="l00073"></a>00073 <a class="code" href="classschroot__listmounts_1_1main.html#b2b9c3a546383be0a67d30b4353dab8c" title="List mounts.">action_listmounts</a> ();
79
<a name="l00074"></a>00074
80
<a name="l00075"></a>00075 <span class="keyword">protected</span>:
81
<a name="l00082"></a>00082 <span class="keyword">virtual</span> <span class="keywordtype">int</span>
82
<a name="l00083"></a>00083 <a class="code" href="classschroot__listmounts_1_1main.html#266e0d62ec45cb0c73b03d277205fe8a" title="Run the program.">run_impl</a> ();
83
<a name="l00084"></a>00084
84
<a name="l00085"></a>00085 <span class="keyword">private</span>:
85
<a name="l00087"></a><a class="code" href="classschroot__listmounts_1_1main.html#47711e79f6201b2f3729309faec636fe">00087</a> <a class="code" href="classschroot__listmounts_1_1options.html#dd79e62137f08126252143ccf63dc429" title="A shared_ptr to an options object.">options::ptr</a> <a class="code" href="classschroot__listmounts_1_1main.html#47711e79f6201b2f3729309faec636fe" title="The program options.">opts</a>;
86
<a name="l00088"></a>00088 };
87
<a name="l00089"></a>00089
88
<a name="l00090"></a>00090 }
89
<a name="l00091"></a>00091
90
<a name="l00092"></a>00092 <span class="preprocessor">#endif </span><span class="comment">/* SCHROOT_LISTMOUNTS_MAIN_H */</span>
91
<a name="l00093"></a>00093
92
<a name="l00094"></a>00094 <span class="comment">/*</span>
93
<a name="l00095"></a>00095 <span class="comment"> * Local Variables:</span>
94
<a name="l00096"></a>00096 <span class="comment"> * mode:C++</span>
95
<a name="l00097"></a>00097 <span class="comment"> * End:</span>
96
<a name="l00098"></a>00098 <span class="comment"> */</span>
97
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Sun Jul 8 21:23:55 2007 for schroot by
64
<a name="l00056"></a>00056 <span class="keyword">private</span>:
65
<a name="l00060"></a>00060 <span class="keyword">virtual</span> <span class="keywordtype">void</span>
66
<a name="l00061"></a>00061 <a class="code" href="classschroot__listmounts_1_1main.html#b2b9c3a546383be0a67d30b4353dab8c" title="List mounts.">action_listmounts</a> ();
67
<a name="l00062"></a>00062
68
<a name="l00063"></a>00063 <span class="keyword">protected</span>:
69
<a name="l00070"></a>00070 <span class="keyword">virtual</span> <span class="keywordtype">int</span>
70
<a name="l00071"></a>00071 <a class="code" href="classschroot__listmounts_1_1main.html#266e0d62ec45cb0c73b03d277205fe8a" title="Run the program.">run_impl</a> ();
71
<a name="l00072"></a>00072
72
<a name="l00073"></a>00073 <span class="keyword">private</span>:
73
<a name="l00075"></a><a class="code" href="classschroot__listmounts_1_1main.html#47711e79f6201b2f3729309faec636fe">00075</a> <a class="code" href="classschroot__listmounts_1_1options.html#dd79e62137f08126252143ccf63dc429" title="A shared_ptr to an options object.">options::ptr</a> <a class="code" href="classschroot__listmounts_1_1main.html#47711e79f6201b2f3729309faec636fe" title="The program options.">opts</a>;
74
<a name="l00076"></a>00076 };
75
<a name="l00077"></a>00077
76
<a name="l00078"></a>00078 }
77
<a name="l00079"></a>00079
78
<a name="l00080"></a>00080 <span class="preprocessor">#endif </span><span class="comment">/* SCHROOT_LISTMOUNTS_MAIN_H */</span>
79
<a name="l00081"></a>00081
80
<a name="l00082"></a>00082 <span class="comment">/*</span>
81
<a name="l00083"></a>00083 <span class="comment"> * Local Variables:</span>
82
<a name="l00084"></a>00084 <span class="comment"> * mode:C++</span>
83
<a name="l00085"></a>00085 <span class="comment"> * End:</span>
84
<a name="l00086"></a>00086 <span class="comment"> */</span>
85
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Mon Jan 21 00:38:28 2008 for schroot by
98
86
<a href="http://www.doxygen.org/index.html">
99
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address>
87
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.4 </small></address>