\hypertarget{namespacesrc_1_1usbDisk2}{}\section{Référence de l\textquotesingle{}espace de nommage src.\+usb\+Disk2}
\label{namespacesrc_1_1usbDisk2}\index{src.\+usb\+Disk2@{src.\+usb\+Disk2}}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
class \hyperlink{classsrc_1_1usbDisk2_1_1Available}{Available}
\begin{DoxyCompactList}\small\item\em une classe pour représenter la collection des disques U\+S\+B connectés \end{DoxyCompactList}\item 
class \hyperlink{classsrc_1_1usbDisk2_1_1MainWindow}{Main\+Window}
\item 
class \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 \hyperlink{classsrc_1_1usbDisk2_1_1UDisksBackend}{U\+Disks\+Backend}
\begin{DoxyCompactList}\small\item\em Cette classe a été inspirée par le projet U\+S\+Bcreator. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Fonctions}
\begin{DoxyCompactItemize}
\item 
def \hyperlink{namespacesrc_1_1usbDisk2_a40f49ea9cccdda381360944bb4694c67}{inspect\+Data} ()
\item 
def \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 \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 \hyperlink{namespacesrc_1_1usbDisk2_a9b785d4df1b354b96fff6351c4d228b9}{print\+\_\+targets\+\_\+if\+\_\+modif} (man, obj)
\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
dictionary \hyperlink{namespacesrc_1_1usbDisk2_a535b2d454752927e5e0498f83f699f42}{licence} = \{\}
\item 
string \hyperlink{namespacesrc_1_1usbDisk2_a73d793d56af8fd2191b58cdbc239419d}{licence\+\_\+en}
\item 
string \hyperlink{namespacesrc_1_1usbDisk2_aea0bbd50bfcf3824a2cdc73daf020866}{dependences} = \char`\"{}python3-\/dbus python3-\/dbus.\+mainloop.\+qt\char`\"{}
\item 
\hyperlink{namespacesrc_1_1usbDisk2_a9c78a8206ea5af261d02a8d635917f91}{debug} = False
\begin{DoxyCompactList}\small\item\em activate debugging \#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\# \end{DoxyCompactList}\item 
tuple \hyperlink{namespacesrc_1_1usbDisk2_a6e78db3167257d5fc2351d0e75fce37c}{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 \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 
tuple \hyperlink{namespacesrc_1_1usbDisk2_a7b308631a869bff5cf9803b55cafa999}{app} = Q\+Application(sys.\+argv)
\item 
tuple \hyperlink{namespacesrc_1_1usbDisk2_a7732ae2a26b448f16e87768e62dffa76}{main} = \hyperlink{classsrc_1_1usbDisk2_1_1MainWindow}{Main\+Window}()
\end{DoxyCompactItemize}


\subsection{Documentation des fonctions}
\hypertarget{namespacesrc_1_1usbDisk2_a124088b557ce86499f2bbb50a54df3de}{}\index{src\+::usb\+Disk2@{src\+::usb\+Disk2}!fs\+\_\+size@{fs\+\_\+size}}
\index{fs\+\_\+size@{fs\+\_\+size}!src\+::usb\+Disk2@{src\+::usb\+Disk2}}
\subsubsection[{fs\+\_\+size}]{\setlength{\rightskip}{0pt plus 5cm}def src.\+usb\+Disk2.\+fs\+\_\+size (
\begin{DoxyParamCaption}
\item[{}]{device}
\end{DoxyParamCaption}
)}\label{namespacesrc_1_1usbDisk2_a124088b557ce86499f2bbb50a54df3de}


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 76 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}


\hypertarget{namespacesrc_1_1usbDisk2_a40f49ea9cccdda381360944bb4694c67}{}\index{src\+::usb\+Disk2@{src\+::usb\+Disk2}!inspect\+Data@{inspect\+Data}}
\index{inspect\+Data@{inspect\+Data}!src\+::usb\+Disk2@{src\+::usb\+Disk2}}
\subsubsection[{inspect\+Data}]{\setlength{\rightskip}{0pt plus 5cm}def src.\+usb\+Disk2.\+inspect\+Data (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{namespacesrc_1_1usbDisk2_a40f49ea9cccdda381360944bb4694c67}


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}


\hypertarget{namespacesrc_1_1usbDisk2_a9b785d4df1b354b96fff6351c4d228b9}{}\index{src\+::usb\+Disk2@{src\+::usb\+Disk2}!print\+\_\+targets\+\_\+if\+\_\+modif@{print\+\_\+targets\+\_\+if\+\_\+modif}}
\index{print\+\_\+targets\+\_\+if\+\_\+modif@{print\+\_\+targets\+\_\+if\+\_\+modif}!src\+::usb\+Disk2@{src\+::usb\+Disk2}}
\subsubsection[{print\+\_\+targets\+\_\+if\+\_\+modif}]{\setlength{\rightskip}{0pt plus 5cm}def src.\+usb\+Disk2.\+print\+\_\+targets\+\_\+if\+\_\+modif (
\begin{DoxyParamCaption}
\item[{}]{man, }
\item[{}]{obj}
\end{DoxyParamCaption}
)}\label{namespacesrc_1_1usbDisk2_a9b785d4df1b354b96fff6351c4d228b9}


Définition à la ligne 802 du fichier usb\+Disk2.\+py.

\hypertarget{namespacesrc_1_1usbDisk2_a1cc978f0b36fc7a494c61860e5cd2a3a}{}\index{src\+::usb\+Disk2@{src\+::usb\+Disk2}!safe\+Path@{safe\+Path}}
\index{safe\+Path@{safe\+Path}!src\+::usb\+Disk2@{src\+::usb\+Disk2}}
\subsubsection[{safe\+Path}]{\setlength{\rightskip}{0pt plus 5cm}def src.\+usb\+Disk2.\+safe\+Path (
\begin{DoxyParamCaption}
\item[{}]{obj}
\end{DoxyParamCaption}
)}\label{namespacesrc_1_1usbDisk2_a1cc978f0b36fc7a494c61860e5cd2a3a}


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 60 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}




\subsection{Documentation des variables}
\hypertarget{namespacesrc_1_1usbDisk2_a7b308631a869bff5cf9803b55cafa999}{}\index{src\+::usb\+Disk2@{src\+::usb\+Disk2}!app@{app}}
\index{app@{app}!src\+::usb\+Disk2@{src\+::usb\+Disk2}}
\subsubsection[{app}]{\setlength{\rightskip}{0pt plus 5cm}tuple src.\+usb\+Disk2.\+app = Q\+Application(sys.\+argv)}\label{namespacesrc_1_1usbDisk2_a7b308631a869bff5cf9803b55cafa999}


Définition à la ligne 809 du fichier usb\+Disk2.\+py.

\hypertarget{namespacesrc_1_1usbDisk2_a9c78a8206ea5af261d02a8d635917f91}{}\index{src\+::usb\+Disk2@{src\+::usb\+Disk2}!debug@{debug}}
\index{debug@{debug}!src\+::usb\+Disk2@{src\+::usb\+Disk2}}
\subsubsection[{debug}]{\setlength{\rightskip}{0pt plus 5cm}src.\+usb\+Disk2.\+debug = False}\label{namespacesrc_1_1usbDisk2_a9c78a8206ea5af261d02a8d635917f91}


activate debugging \#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\# 



Définition à la ligne 35 du fichier usb\+Disk2.\+py.

\hypertarget{namespacesrc_1_1usbDisk2_aea0bbd50bfcf3824a2cdc73daf020866}{}\index{src\+::usb\+Disk2@{src\+::usb\+Disk2}!dependences@{dependences}}
\index{dependences@{dependences}!src\+::usb\+Disk2@{src\+::usb\+Disk2}}
\subsubsection[{dependences}]{\setlength{\rightskip}{0pt plus 5cm}string src.\+usb\+Disk2.\+dependences = \char`\"{}python3-\/dbus python3-\/dbus.\+mainloop.\+qt\char`\"{}}\label{namespacesrc_1_1usbDisk2_aea0bbd50bfcf3824a2cdc73daf020866}


Définition à la ligne 26 du fichier usb\+Disk2.\+py.

\hypertarget{namespacesrc_1_1usbDisk2_a535b2d454752927e5e0498f83f699f42}{}\index{src\+::usb\+Disk2@{src\+::usb\+Disk2}!licence@{licence}}
\index{licence@{licence}!src\+::usb\+Disk2@{src\+::usb\+Disk2}}
\subsubsection[{licence}]{\setlength{\rightskip}{0pt plus 5cm}dictionary src.\+usb\+Disk2.\+licence = \{\}}\label{namespacesrc_1_1usbDisk2_a535b2d454752927e5e0498f83f699f42}


Définition à la ligne 3 du fichier usb\+Disk2.\+py.

\hypertarget{namespacesrc_1_1usbDisk2_a73d793d56af8fd2191b58cdbc239419d}{}\index{src\+::usb\+Disk2@{src\+::usb\+Disk2}!licence\+\_\+en@{licence\+\_\+en}}
\index{licence\+\_\+en@{licence\+\_\+en}!src\+::usb\+Disk2@{src\+::usb\+Disk2}}
\subsubsection[{licence\+\_\+en}]{\setlength{\rightskip}{0pt plus 5cm}string src.\+usb\+Disk2.\+licence\+\_\+en}\label{namespacesrc_1_1usbDisk2_a73d793d56af8fd2191b58cdbc239419d}
{\bfseries Valeur initiale \+:}
\begin{DoxyCode}
1 = \textcolor{stringliteral}{"""}
2 \textcolor{stringliteral}{    file usbDisk2.py}
3 \textcolor{stringliteral}{    this file is part of the project scolasync. It is a rewrite of}
4 \textcolor{stringliteral}{    usbDisk.py to take in account udisks2.}
5 \textcolor{stringliteral}{    }
6 \textcolor{stringliteral}{    Copyright (C) 2014 Georges Khaznadar <georgesk@ofset.org>}
7 \textcolor{stringliteral}{}
8 \textcolor{stringliteral}{    This program is free software: you can redistribute it and/or modify}
9 \textcolor{stringliteral}{    it under the terms of the GNU General Public License as published by}
10 \textcolor{stringliteral}{    the Free Software Foundation, either version3 of the License, or}
11 \textcolor{stringliteral}{    (at your option) any later version.}
12 \textcolor{stringliteral}{}
13 \textcolor{stringliteral}{    This program is distributed in the hope that it will be useful,}
14 \textcolor{stringliteral}{    but WITHOUT ANY WARRANTY; without even the implied warranty of}
15 \textcolor{stringliteral}{    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the}
16 \textcolor{stringliteral}{    GNU General Public License for more details.}
17 \textcolor{stringliteral}{}
18 \textcolor{stringliteral}{    You should have received a copy of the GNU General Public License}
19 \textcolor{stringliteral}{    along with this program.  If not, see <http://www.gnu.org/licenses/>.}
20 \textcolor{stringliteral}{"""}
\end{DoxyCode}


Définition à la ligne 4 du fichier usb\+Disk2.\+py.

\hypertarget{namespacesrc_1_1usbDisk2_a7732ae2a26b448f16e87768e62dffa76}{}\index{src\+::usb\+Disk2@{src\+::usb\+Disk2}!main@{main}}
\index{main@{main}!src\+::usb\+Disk2@{src\+::usb\+Disk2}}
\subsubsection[{main}]{\setlength{\rightskip}{0pt plus 5cm}tuple src.\+usb\+Disk2.\+main = {\bf Main\+Window}()}\label{namespacesrc_1_1usbDisk2_a7732ae2a26b448f16e87768e62dffa76}


Définition à la ligne 810 du fichier usb\+Disk2.\+py.

\hypertarget{namespacesrc_1_1usbDisk2_a6e78db3167257d5fc2351d0e75fce37c}{}\index{src\+::usb\+Disk2@{src\+::usb\+Disk2}!no\+\_\+options@{no\+\_\+options}}
\index{no\+\_\+options@{no\+\_\+options}!src\+::usb\+Disk2@{src\+::usb\+Disk2}}
\subsubsection[{no\+\_\+options}]{\setlength{\rightskip}{0pt plus 5cm}tuple src.\+usb\+Disk2.\+no\+\_\+options = G\+Lib.\+Variant(\textquotesingle{}a\{sv\}\textquotesingle{}, \{\})}\label{namespacesrc_1_1usbDisk2_a6e78db3167257d5fc2351d0e75fce37c}


la variable suivante a été recopiées à l\textquotesingle{}aveugle \#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\# depuis un fichier du projet U\+S\+Bcreator \#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\# 



Définition à la ligne 88 du fichier usb\+Disk2.\+py.

\hypertarget{namespacesrc_1_1usbDisk2_a83c9a8fbdb41f52508949686d997cddc}{}\index{src\+::usb\+Disk2@{src\+::usb\+Disk2}!not\+\_\+interesting@{not\+\_\+interesting}}
\index{not\+\_\+interesting@{not\+\_\+interesting}!src\+::usb\+Disk2@{src\+::usb\+Disk2}}
\subsubsection[{not\+\_\+interesting}]{\setlength{\rightskip}{0pt plus 5cm}tuple src.\+usb\+Disk2.\+not\+\_\+interesting}\label{namespacesrc_1_1usbDisk2_a83c9a8fbdb41f52508949686d997cddc}
{\bfseries Valeur initiale \+:}
\begin{DoxyCode}
1 = (
2     \textcolor{comment}{# boucle}
3     \textcolor{stringliteral}{'/org/freedesktop/UDisks2/block\_devices/loop'},
4     \textcolor{comment}{# disque raid}
5     \textcolor{stringliteral}{'/org/freedesktop/UDisks2/block\_devices/dm\_'},
6     \textcolor{comment}{# mémoire vive}
7     \textcolor{stringliteral}{'/org/freedesktop/UDisks2/block\_devices/ram'},    
8     \textcolor{stringliteral}{'/org/freedesktop/UDisks2/block\_devices/zram'},
9     \textcolor{comment}{# disques durs}
10     \textcolor{stringliteral}{'/org/freedesktop/UDisks2/drives/'}, 
11     )
\end{DoxyCode}


des \char`\"{}chemins\char`\"{} correspondant à des disques non débranchables \#\#\#\#\#\#\#\# 



Définition à la ligne 93 du fichier usb\+Disk2.\+py.

