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 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284
|
\hypertarget{namespacesrc_1_1usbDisk2}{}\doxysection{Référence de l\textquotesingle{}espace de nommage src.\+usb\+Disk2}
\label{namespacesrc_1_1usbDisk2}\index{src.usbDisk2@{src.usbDisk2}}
\doxysubsection*{Classes}
\begin{DoxyCompactItemize}
\item
class \mbox{\hyperlink{classsrc_1_1usbDisk2_1_1Available}{Available}}
\begin{DoxyCompactList}\small\item\em une classe pour représenter la collection des disques U\+SB connectés \end{DoxyCompactList}\item
class \mbox{\hyperlink{classsrc_1_1usbDisk2_1_1MainWindow}{Main\+Window}}
\item
class \mbox{\hyperlink{classsrc_1_1usbDisk2_1_1uDisk2}{u\+Disk2}}
\begin{DoxyCompactList}\small\item\em une classe pour représenter un disque ou une partition. \end{DoxyCompactList}\item
class \mbox{\hyperlink{classsrc_1_1usbDisk2_1_1UDisksBackend}{U\+Disks\+Backend}}
\end{DoxyCompactItemize}
\doxysubsection*{Fonctions}
\begin{DoxyCompactItemize}
\item
def \mbox{\hyperlink{namespacesrc_1_1usbDisk2_a40f49ea9cccdda381360944bb4694c67}{inspect\+Data}} ()
\item
def \mbox{\hyperlink{namespacesrc_1_1usbDisk2_a1cc978f0b36fc7a494c61860e5cd2a3a}{safe\+Path}} (obj)
\begin{DoxyCompactList}\small\item\em Récupère de façon sûre le path d\textquotesingle{}une instance de U\+Disks\+Object\+Proxy. \end{DoxyCompactList}\item
def \mbox{\hyperlink{namespacesrc_1_1usbDisk2_a124088b557ce86499f2bbb50a54df3de}{fs\+\_\+size}} (device)
\begin{DoxyCompactList}\small\item\em Renvoie la taille d\textquotesingle{}un système de fichier et la place disponible. \end{DoxyCompactList}\item
def \mbox{\hyperlink{namespacesrc_1_1usbDisk2_a9b785d4df1b354b96fff6351c4d228b9}{print\+\_\+targets\+\_\+if\+\_\+modif}} (man, obj)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
dictionary \mbox{\hyperlink{namespacesrc_1_1usbDisk2_a535b2d454752927e5e0498f83f699f42}{licence}} = \{\}
\item
string \mbox{\hyperlink{namespacesrc_1_1usbDisk2_a73d793d56af8fd2191b58cdbc239419d}{licence\+\_\+en}}
\item
string \mbox{\hyperlink{namespacesrc_1_1usbDisk2_a6888ffacbe946e7676339f7fc3696912}{dependances}} = \char`\"{}python3-\/dbus python3-\/dbus.\+mainloop.\+pyqt5\char`\"{}
\item
bool \mbox{\hyperlink{namespacesrc_1_1usbDisk2_a9df1fdfc2e7c6f4893a1566c4db759a3}{debug}} = False
\begin{DoxyCompactList}\small\item\em activate debugging \#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\# \end{DoxyCompactList}\item
\mbox{\hyperlink{namespacesrc_1_1usbDisk2_a2e93b1fb0e3ca6307812e8f464814155}{level}}
\item
\mbox{\hyperlink{namespacesrc_1_1usbDisk2_ad2c8a01e0625293a29146b0dcbed4a39}{no\+\_\+options}} = G\+Lib.\+Variant(\textquotesingle{}a\{sv\}\textquotesingle{}, \{\})
\begin{DoxyCompactList}\small\item\em la variable suivante a été recopiées à l\textquotesingle{}aveugle \#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\# depuis un fichier du projet U\+S\+Bcreator \#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\# \end{DoxyCompactList}\item
tuple \mbox{\hyperlink{namespacesrc_1_1usbDisk2_a83c9a8fbdb41f52508949686d997cddc}{not\+\_\+interesting}}
\begin{DoxyCompactList}\small\item\em des \char`\"{}chemins\char`\"{} correspondant à des disques non débranchables \#\#\#\#\#\#\#\# \end{DoxyCompactList}\item
\mbox{\hyperlink{namespacesrc_1_1usbDisk2_ac2e9157315de37a948920b8ad2acd1ea}{machin}}
\item
\mbox{\hyperlink{namespacesrc_1_1usbDisk2_abca0b8bcb24bdfb2b8443a7ddeb36254}{app}} = Q\+Application(sys.\+argv)
\item
\mbox{\hyperlink{namespacesrc_1_1usbDisk2_a35e8cb05f48405cf17cba03217677439}{main}} = \mbox{\hyperlink{classsrc_1_1usbDisk2_1_1MainWindow}{Main\+Window}}()
\end{DoxyCompactItemize}
\doxysubsection{Documentation des fonctions}
\mbox{\Hypertarget{namespacesrc_1_1usbDisk2_a124088b557ce86499f2bbb50a54df3de}\label{namespacesrc_1_1usbDisk2_a124088b557ce86499f2bbb50a54df3de}}
\index{src.usbDisk2@{src.usbDisk2}!fs\_size@{fs\_size}}
\index{fs\_size@{fs\_size}!src.usbDisk2@{src.usbDisk2}}
\doxysubsubsection{\texorpdfstring{fs\_size()}{fs\_size()}}
{\footnotesize\ttfamily def src.\+usb\+Disk2.\+fs\+\_\+size (\begin{DoxyParamCaption}\item[{}]{device }\end{DoxyParamCaption})}
Renvoie la taille d\textquotesingle{}un système de fichier et la place disponible.
\begin{DoxyReturn}{Renvoie}
un tuple \+: taille totale et espace libre
\end{DoxyReturn}
Définition à la ligne 74 du fichier usb\+Disk2.\+py.
Voici le graphe des appelants de cette fonction \+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{namespacesrc_1_1usbDisk2_a124088b557ce86499f2bbb50a54df3de_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{namespacesrc_1_1usbDisk2_a40f49ea9cccdda381360944bb4694c67}\label{namespacesrc_1_1usbDisk2_a40f49ea9cccdda381360944bb4694c67}}
\index{src.usbDisk2@{src.usbDisk2}!inspectData@{inspectData}}
\index{inspectData@{inspectData}!src.usbDisk2@{src.usbDisk2}}
\doxysubsubsection{\texorpdfstring{inspectData()}{inspectData()}}
{\footnotesize\ttfamily def src.\+usb\+Disk2.\+inspect\+Data (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}
Définition à la ligne 36 du fichier usb\+Disk2.\+py.
Voici le graphe des appelants de cette fonction \+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{namespacesrc_1_1usbDisk2_a40f49ea9cccdda381360944bb4694c67_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{namespacesrc_1_1usbDisk2_a9b785d4df1b354b96fff6351c4d228b9}\label{namespacesrc_1_1usbDisk2_a9b785d4df1b354b96fff6351c4d228b9}}
\index{src.usbDisk2@{src.usbDisk2}!print\_targets\_if\_modif@{print\_targets\_if\_modif}}
\index{print\_targets\_if\_modif@{print\_targets\_if\_modif}!src.usbDisk2@{src.usbDisk2}}
\doxysubsubsection{\texorpdfstring{print\_targets\_if\_modif()}{print\_targets\_if\_modif()}}
{\footnotesize\ttfamily def src.\+usb\+Disk2.\+print\+\_\+targets\+\_\+if\+\_\+modif (\begin{DoxyParamCaption}\item[{}]{man, }\item[{}]{obj }\end{DoxyParamCaption})}
Définition à la ligne 777 du fichier usb\+Disk2.\+py.
\mbox{\Hypertarget{namespacesrc_1_1usbDisk2_a1cc978f0b36fc7a494c61860e5cd2a3a}\label{namespacesrc_1_1usbDisk2_a1cc978f0b36fc7a494c61860e5cd2a3a}}
\index{src.usbDisk2@{src.usbDisk2}!safePath@{safePath}}
\index{safePath@{safePath}!src.usbDisk2@{src.usbDisk2}}
\doxysubsubsection{\texorpdfstring{safePath()}{safePath()}}
{\footnotesize\ttfamily def src.\+usb\+Disk2.\+safe\+Path (\begin{DoxyParamCaption}\item[{}]{obj }\end{DoxyParamCaption})}
Récupère de façon sûre le path d\textquotesingle{}une instance de U\+Disks\+Object\+Proxy.
\begin{DoxyParams}{Paramètres}
{\em obj} & instance de U\+Disks\+Object\+Proxy, ou simple chaine \\
\hline
\end{DoxyParams}
Définition à la ligne 59 du fichier usb\+Disk2.\+py.
Voici le graphe des appelants de cette fonction \+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{namespacesrc_1_1usbDisk2_a1cc978f0b36fc7a494c61860e5cd2a3a_icgraph}
\end{center}
\end{figure}
\doxysubsection{Documentation des variables}
\mbox{\Hypertarget{namespacesrc_1_1usbDisk2_abca0b8bcb24bdfb2b8443a7ddeb36254}\label{namespacesrc_1_1usbDisk2_abca0b8bcb24bdfb2b8443a7ddeb36254}}
\index{src.usbDisk2@{src.usbDisk2}!app@{app}}
\index{app@{app}!src.usbDisk2@{src.usbDisk2}}
\doxysubsubsection{\texorpdfstring{app}{app}}
{\footnotesize\ttfamily src.\+usb\+Disk2.\+app = Q\+Application(sys.\+argv)}
Définition à la ligne 784 du fichier usb\+Disk2.\+py.
\mbox{\Hypertarget{namespacesrc_1_1usbDisk2_a9df1fdfc2e7c6f4893a1566c4db759a3}\label{namespacesrc_1_1usbDisk2_a9df1fdfc2e7c6f4893a1566c4db759a3}}
\index{src.usbDisk2@{src.usbDisk2}!debug@{debug}}
\index{debug@{debug}!src.usbDisk2@{src.usbDisk2}}
\doxysubsubsection{\texorpdfstring{debug}{debug}}
{\footnotesize\ttfamily bool src.\+usb\+Disk2.\+debug = False}
activate debugging \#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#
Définition à la ligne 35 du fichier usb\+Disk2.\+py.
\mbox{\Hypertarget{namespacesrc_1_1usbDisk2_a6888ffacbe946e7676339f7fc3696912}\label{namespacesrc_1_1usbDisk2_a6888ffacbe946e7676339f7fc3696912}}
\index{src.usbDisk2@{src.usbDisk2}!dependances@{dependances}}
\index{dependances@{dependances}!src.usbDisk2@{src.usbDisk2}}
\doxysubsubsection{\texorpdfstring{dependances}{dependances}}
{\footnotesize\ttfamily string src.\+usb\+Disk2.\+dependances = \char`\"{}python3-\/dbus python3-\/dbus.\+mainloop.\+pyqt5\char`\"{}}
Définition à la ligne 26 du fichier usb\+Disk2.\+py.
\mbox{\Hypertarget{namespacesrc_1_1usbDisk2_a2e93b1fb0e3ca6307812e8f464814155}\label{namespacesrc_1_1usbDisk2_a2e93b1fb0e3ca6307812e8f464814155}}
\index{src.usbDisk2@{src.usbDisk2}!level@{level}}
\index{level@{level}!src.usbDisk2@{src.usbDisk2}}
\doxysubsubsection{\texorpdfstring{level}{level}}
{\footnotesize\ttfamily src.\+usb\+Disk2.\+level}
Définition à la ligne 40 du fichier usb\+Disk2.\+py.
\mbox{\Hypertarget{namespacesrc_1_1usbDisk2_a535b2d454752927e5e0498f83f699f42}\label{namespacesrc_1_1usbDisk2_a535b2d454752927e5e0498f83f699f42}}
\index{src.usbDisk2@{src.usbDisk2}!licence@{licence}}
\index{licence@{licence}!src.usbDisk2@{src.usbDisk2}}
\doxysubsubsection{\texorpdfstring{licence}{licence}}
{\footnotesize\ttfamily dictionary src.\+usb\+Disk2.\+licence = \{\}}
Définition à la ligne 3 du fichier usb\+Disk2.\+py.
\mbox{\Hypertarget{namespacesrc_1_1usbDisk2_a73d793d56af8fd2191b58cdbc239419d}\label{namespacesrc_1_1usbDisk2_a73d793d56af8fd2191b58cdbc239419d}}
\index{src.usbDisk2@{src.usbDisk2}!licence\_en@{licence\_en}}
\index{licence\_en@{licence\_en}!src.usbDisk2@{src.usbDisk2}}
\doxysubsubsection{\texorpdfstring{licence\_en}{licence\_en}}
{\footnotesize\ttfamily string src.\+usb\+Disk2.\+licence\+\_\+en}
{\bfseries Valeur initiale \+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 = \textcolor{stringliteral}{"""}}
\DoxyCodeLine{2 \textcolor{stringliteral}{ file usbDisk2.py}}
\DoxyCodeLine{3 \textcolor{stringliteral}{ this file is part of the project scolasync. It is a rewrite of}}
\DoxyCodeLine{4 \textcolor{stringliteral}{ usbDisk.py to take in account udisks2.}}
\DoxyCodeLine{5 \textcolor{stringliteral}{}}
\DoxyCodeLine{6 \textcolor{stringliteral}{ Copyright (C) 2014 Georges Khaznadar <georgesk@ofset.org>}}
\DoxyCodeLine{7 \textcolor{stringliteral}{}}
\DoxyCodeLine{8 \textcolor{stringliteral}{ This program is free software: you can redistribute it and/or modify}}
\DoxyCodeLine{9 \textcolor{stringliteral}{ it under the terms of the GNU General Public License as published by}}
\DoxyCodeLine{10 \textcolor{stringliteral}{ the Free Software Foundation, either version3 of the License, or}}
\DoxyCodeLine{11 \textcolor{stringliteral}{ (at your option) any later version.}}
\DoxyCodeLine{12 \textcolor{stringliteral}{}}
\DoxyCodeLine{13 \textcolor{stringliteral}{ This program is distributed in the hope that it will be useful,}}
\DoxyCodeLine{14 \textcolor{stringliteral}{ but WITHOUT ANY WARRANTY; without even the implied warranty of}}
\DoxyCodeLine{15 \textcolor{stringliteral}{ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the}}
\DoxyCodeLine{16 \textcolor{stringliteral}{ GNU General Public License for more details.}}
\DoxyCodeLine{17 \textcolor{stringliteral}{}}
\DoxyCodeLine{18 \textcolor{stringliteral}{ You should have received a copy of the GNU General Public License}}
\DoxyCodeLine{19 \textcolor{stringliteral}{ along with this program. If not, see <http://www.gnu.org/licenses/>.}}
\DoxyCodeLine{20 \textcolor{stringliteral}{"""}}
\end{DoxyCode}
Définition à la ligne 4 du fichier usb\+Disk2.\+py.
\mbox{\Hypertarget{namespacesrc_1_1usbDisk2_ac2e9157315de37a948920b8ad2acd1ea}\label{namespacesrc_1_1usbDisk2_ac2e9157315de37a948920b8ad2acd1ea}}
\index{src.usbDisk2@{src.usbDisk2}!machin@{machin}}
\index{machin@{machin}!src.usbDisk2@{src.usbDisk2}}
\doxysubsubsection{\texorpdfstring{machin}{machin}}
{\footnotesize\ttfamily src.\+usb\+Disk2.\+machin}
Définition à la ligne 775 du fichier usb\+Disk2.\+py.
\mbox{\Hypertarget{namespacesrc_1_1usbDisk2_a35e8cb05f48405cf17cba03217677439}\label{namespacesrc_1_1usbDisk2_a35e8cb05f48405cf17cba03217677439}}
\index{src.usbDisk2@{src.usbDisk2}!main@{main}}
\index{main@{main}!src.usbDisk2@{src.usbDisk2}}
\doxysubsubsection{\texorpdfstring{main}{main}}
{\footnotesize\ttfamily src.\+usb\+Disk2.\+main = \mbox{\hyperlink{classsrc_1_1usbDisk2_1_1MainWindow}{Main\+Window}}()}
Définition à la ligne 785 du fichier usb\+Disk2.\+py.
\mbox{\Hypertarget{namespacesrc_1_1usbDisk2_ad2c8a01e0625293a29146b0dcbed4a39}\label{namespacesrc_1_1usbDisk2_ad2c8a01e0625293a29146b0dcbed4a39}}
\index{src.usbDisk2@{src.usbDisk2}!no\_options@{no\_options}}
\index{no\_options@{no\_options}!src.usbDisk2@{src.usbDisk2}}
\doxysubsubsection{\texorpdfstring{no\_options}{no\_options}}
{\footnotesize\ttfamily src.\+usb\+Disk2.\+no\+\_\+options = G\+Lib.\+Variant(\textquotesingle{}a\{sv\}\textquotesingle{}, \{\})}
la variable suivante a été recopiées à l\textquotesingle{}aveugle \#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\# depuis un fichier du projet U\+S\+Bcreator \#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#
Définition à la ligne 86 du fichier usb\+Disk2.\+py.
\mbox{\Hypertarget{namespacesrc_1_1usbDisk2_a83c9a8fbdb41f52508949686d997cddc}\label{namespacesrc_1_1usbDisk2_a83c9a8fbdb41f52508949686d997cddc}}
\index{src.usbDisk2@{src.usbDisk2}!not\_interesting@{not\_interesting}}
\index{not\_interesting@{not\_interesting}!src.usbDisk2@{src.usbDisk2}}
\doxysubsubsection{\texorpdfstring{not\_interesting}{not\_interesting}}
{\footnotesize\ttfamily tuple src.\+usb\+Disk2.\+not\+\_\+interesting}
{\bfseries Valeur initiale \+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 = (}
\DoxyCodeLine{2 \textcolor{comment}{\# boucle}}
\DoxyCodeLine{3 \textcolor{stringliteral}{'/org/freedesktop/UDisks2/block\_devices/loop'},}
\DoxyCodeLine{4 \textcolor{comment}{\# disque raid}}
\DoxyCodeLine{5 \textcolor{stringliteral}{'/org/freedesktop/UDisks2/block\_devices/dm\_'},}
\DoxyCodeLine{6 \textcolor{comment}{\# mémoire vive}}
\DoxyCodeLine{7 \textcolor{stringliteral}{'/org/freedesktop/UDisks2/block\_devices/ram'},}
\DoxyCodeLine{8 \textcolor{stringliteral}{'/org/freedesktop/UDisks2/block\_devices/zram'},}
\DoxyCodeLine{9 \textcolor{comment}{\# disques durs}}
\DoxyCodeLine{10 \textcolor{stringliteral}{'/org/freedesktop/UDisks2/drives/'},}
\DoxyCodeLine{11 )}
\end{DoxyCode}
des \char`\"{}chemins\char`\"{} correspondant à des disques non débranchables \#\#\#\#\#\#\#\#
Définition à la ligne 91 du fichier usb\+Disk2.\+py.
|