26 |
26 |
27 def read(self, fileNameOrDevice): |
27 def read(self, fileNameOrDevice): |
28 """ |
28 """ |
29 Public method to read a user agent file. |
29 Public method to read a user agent file. |
30 |
30 |
31 @param fileNameOrDevice name of the file to read (string) |
31 @param fileNameOrDevice name of the file to read or reference to |
32 or reference to the device to read (QIODevice) |
32 the device to read |
33 @return list of speed dial pages (list of Page), number of pages per |
33 @type str or QIODevice |
34 row (integer) and size of the speed dial pages (integer) |
34 @return list of speed dial pages, number of pages per row and |
|
35 size of the speed dial pages |
|
36 @rtype tuple of (list of Page, int, int) |
35 """ |
37 """ |
36 self.__pages = [] |
38 self.__pages = [] |
37 self.__pagesPerRow = 0 |
39 self.__pagesPerRow = 0 |
38 self.__sdSize = 0 |
40 self.__sdSize = 0 |
39 |
41 |