Debian Codegraph @

src/collectiondb.h

raw symbols SCIP
1 /*
2 Copyright (C) 2005-2014 Mario Stephan <[email protected]>
3
4 This library is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published
6 by the Free Software Foundation; either version 2.1 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifndef COLLECTIONDB_H
19 #define COLLECTIONDB_Hcxx . . $ `src/collectiondb.h:19:9`!
20
21 #include "progressbar.h"cxx . . $ `<file>/src/progressbar.h`/
22 #include <QtSql>
23 #include <qdir.h>
24 #include <qobject.h>
25 #include <qstringlist.h>
26
27 //class sqlite;
28
29 class CollectionDBcxx . . $ CollectionDB# : public QObjectcxx . . $ QObject# {
30 Q_OBJECTcxx . . $ QMetaObject#Call#
31
32 public:
33 CollectionDBcxx . . $ CollectionDB#CollectionDB(49f6e7a06ebc5aa8).();
34 ~cxx . . $ CollectionDB#`~CollectionDB`(ced63f7c635d850d).CollectionDBcxx . . $ CollectionDB#();
35
36 bool isDbValidcxx . . $ CollectionDB#isDbValid(c9857a73d68e59ba).();
37 bool isEmptycxx . . $ CollectionDB#isEmpty(c9857a73d68e59ba).();
38
39 void incSongCountercxx . . $ CollectionDB#incSongCounter(7df51288a9ebd664).(const QStringcxx . . $ QString# url);
40 void setSongRatecxx . . $ CollectionDB#setSongRate(f2e9810b37c242c3).(const QStringcxx . . $ QString# url, int rate);
41 void updateDirStatscxx . . $ CollectionDB#updateDirStats(a681021b9d4cbed8).(QStringcxx . . $ QString# path, const long datetime);
42 void removeSongsInDircxx . . $ CollectionDB#removeSongsInDir(7df51288a9ebd664).(QStringcxx . . $ QString# path);
43 bool isDirInCollectioncxx . . $ CollectionDB#isDirInCollection(7dc6c9a0b6a7270f).(QStringcxx . . $ QString# path);
44 void removeDirFromCollectioncxx . . $ CollectionDB#removeDirFromCollection(7df51288a9ebd664).(QStringcxx . . $ QString# path);
45 void removePlaylistcxx . . $ CollectionDB#removePlaylist(7df51288a9ebd664).(QStringcxx . . $ QString# name);
46 void setFilterStringcxx . . $ CollectionDB#setFilterString(7df51288a9ebd664).(QStringcxx . . $ QString# string);
47
48 bool executeSqlcxx . . $ CollectionDB#executeSql(e1defb592416720d).(const QStringcxx . . $ QString#& statement);
49 QListcxx . . $ QList#<QStringListcxx . . $ QStringList#> selectSqlcxx . . $ CollectionDB#selectSql(246915446894f09d).(const QStringcxx . . $ QString#& statement);
50 long selectSqlNumbercxx . . $ CollectionDB#selectSqlNumber(5e0eb495a084d520).(const QStringcxx . . $ QString#& statement);
51
52 int sqlInsertIDcxx . . $ CollectionDB#sqlInsertID(b126dc7c1de90089).();
53 QStringcxx . . $ QString# escapeStringcxx . . $ CollectionDB#escapeString(f7f320d754b8fd09).(QStringcxx . . $ QString# string);
54
55 ulongcxx . . $ ulong# getValueIDcxx . . $ CollectionDB#getValueID(f3056d5d9bf66617).(QStringcxx . . $ QString# name, QStringcxx . . $ QString# value, bool autocreate = true, bool useTempTables = false);
56 ulongcxx . . $ ulong# getCountcxx . . $ CollectionDB#getCount(f708dce9a8856c70).();
57 uintcxx . . $ uint# getCountcxx . . $ CollectionDB#getCount(4b1632ee4ca0317d).(QStringcxx . . $ QString# path, QStringcxx . . $ QString# genre, QStringcxx . . $ QString# artist);
58 QPaircxx . . $ QPair#<int, int> getCountcxx . . $ CollectionDB#getCount(42e7798a7ecb90db).(QStringListcxx . . $ QStringList# paths, QStringListcxx . . $ QStringList# genres, QStringListcxx . . $ QStringList# artists);
59 long lastLengthSumcxx . . $ CollectionDB#lastLengthSum(da6335ded91d79c2).();
60 uintcxx . . $ uint# lastMaxCountcxx . . $ CollectionDB#lastMaxCount(db52760e79bf9054).();
61
62 QListcxx . . $ QList#<QStringListcxx . . $ QStringList#> selectRandomEntrycxx . . $ CollectionDB#selectRandomEntry(e2c73df4e0ebaeed).(QStringcxx . . $ QString# rownum, QStringcxx . . $ QString# path = ""cxx . . $ QString#QString(85c52e162fed56f9)., QStringcxx . . $ QString# genre = ""cxx . . $ QString#QString(85c52e162fed56f9)., QStringcxx . . $ QString# artist = ""cxx . . $ QString#QString(85c52e162fed56f9).);
63 QStringListcxx . . $ QStringList# getRandomEntrycxx . . $ CollectionDB#getRandomEntry(669a05bc42dd57cc).();
64 QStringListcxx . . $ QStringList# getRandomEntrycxx . . $ CollectionDB#getRandomEntry(8e8f2f8532ff0672).(QStringcxx . . $ QString# path, QStringcxx . . $ QString# genre, QStringcxx . . $ QString# artist);
65
66 void createTablescxx . . $ CollectionDB#createTables(b45ddcbc8423892c).(const bool temporary = false);
67 void dropTablescxx . . $ CollectionDB#dropTables(b45ddcbc8423892c).(const bool temporary = false);
68 void moveTempTablescxx . . $ CollectionDB#moveTempTables(49f6e7a06ebc5aa8).();
69 void createStatsTablecxx . . $ CollectionDB#createStatsTable(49f6e7a06ebc5aa8).();
70 void dropStatsTablecxx . . $ CollectionDB#dropStatsTable(49f6e7a06ebc5aa8).();
71 void resetSongCountercxx . . $ CollectionDB#resetSongCounter(49f6e7a06ebc5aa8).();
72
73 void purgeDirCachecxx . . $ CollectionDB#purgeDirCache(49f6e7a06ebc5aa8).();
74 void scanModifiedDirscxx . . $ CollectionDB#scanModifiedDirs(b45ddcbc8423892c).(bool recursively);
75 void scancxx . . $ CollectionDB#scan(4e0be21a81c6823b).(const QStringListcxx . . $ QStringList#& folders, bool recursively);
76
77 QListcxx . . $ QList#<QStringListcxx . . $ QStringList#> selectTrackscxx . . $ CollectionDB#selectTracks(e2c73df4e0ebaeed).(QStringcxx . . $ QString# year, QStringcxx . . $ QString# genre, QStringcxx . . $ QString# artist, QStringcxx . . $ QString# album);
78 QListcxx . . $ QList#<QStringListcxx . . $ QStringList#> selectAlbumscxx . . $ CollectionDB#selectAlbums(7bf9880d9b041173).(QStringcxx . . $ QString# year, QStringcxx . . $ QString# genre, QStringcxx . . $ QString# artist);
79 QListcxx . . $ QList#<QStringListcxx . . $ QStringList#> selectArtistscxx . . $ CollectionDB#selectArtists(dd80deef3a1011c6).(QStringcxx . . $ QString# year = ""cxx . . $ QString#QString(85c52e162fed56f9)., QStringcxx . . $ QString# genre = ""cxx . . $ QString#QString(85c52e162fed56f9).);
80 QListcxx . . $ QList#<QStringListcxx . . $ QStringList#> selectYearscxx . . $ CollectionDB#selectYears(c58e6b6884db9162).();
81 QListcxx . . $ QList#<QStringListcxx . . $ QStringList#> selectGenrescxx . . $ CollectionDB#selectGenres(c58e6b6884db9162).();
82 QListcxx . . $ QList#<QStringListcxx . . $ QStringList#> selectHotTrackscxx . . $ CollectionDB#selectHotTracks(c58e6b6884db9162).();
83 QListcxx . . $ QList#<QStringListcxx . . $ QStringList#> selectLastTrackscxx . . $ CollectionDB#selectLastTracks(c58e6b6884db9162).();
84 QListcxx . . $ QList#<QStringListcxx . . $ QStringList#> selectFavoritesTrackscxx . . $ CollectionDB#selectFavoritesTracks(c58e6b6884db9162).();
85 QListcxx . . $ QList#<QStringListcxx . . $ QStringList#> selectPlaylistDatacxx . . $ CollectionDB#selectPlaylistData(c58e6b6884db9162).();
86 QListcxx . . $ QList#<QStringListcxx . . $ QStringList#> selectPlaylistTrackscxx . . $ CollectionDB#selectPlaylistTracks(b852ae6b10e970c6).(QStringcxx . . $ QString# name);
87
88 signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!:
89 void scanDonecxx . . $ CollectionDB#scanDone(b45ddcbc8423892c).(bool changed);
90
91 private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!:
92
93 private:
94 struct CollectionDbPrivatecxx . . $ CollectionDbPrivate#* pcxx . . $ CollectionDB#p.;
95 QSqlDatabasecxx . . $ QSqlDatabase# dbcxx . . $ CollectionDB#db.;
96 ProgressBarcxx . . $ ProgressBar#* m_progresscxx . . $ CollectionDB#m_progress.;
97 bool m_monitorcxx . . $ CollectionDB#m_monitor.;
98 int m_lastInsertIdcxx . . $ CollectionDB#m_lastInsertId.;
99 };
100
101 #endif /* COLLECTIONDB_H */