| 
									
										
										
										
											2019-09-14 15:42:24 -04:00
										 |  |  | #ifndef UTILS_H
 | 
					
						
							|  |  |  | #define UTILS_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <QObject>
 | 
					
						
							|  |  |  | #include <QLocale>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class Utils : public QObject { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Q_OBJECT | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | public: | 
					
						
							|  |  |  |     Utils(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | public slots: | 
					
						
							|  |  |  |     QString formattedBytes(qint64 bytes, int precision = 2); | 
					
						
							| 
									
										
										
										
											2019-12-04 06:22:04 -04:00
										 |  |  |     QString uuid(); | 
					
						
							| 
									
										
										
										
											2019-09-14 15:42:24 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | private: | 
					
						
							|  |  |  |     QLocale m_locale; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif
 |