Warning, /libraries/phonon-vlc/src/utils/mime.h.cmake is written in an unsupported language. File is not indexed.

0001 /*
0002     Copyright (C) 2012 Harald Sitter <sitter@kde.org>
0003 
0004     This library is free software; you can redistribute it and/or
0005     modify it under the terms of the GNU Lesser General Public
0006     License as published by the Free Software Foundation; either
0007     version 2.1 of the License, or (at your option) any later version.
0008 
0009     This library is distributed in the hope that it will be useful,
0010     but WITHOUT ANY WARRANTY; without even the implied warranty of
0011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0012     Lesser General Public License for more details.
0013 
0014     You should have received a copy of the GNU Lesser General Public
0015     License along with this library.  If not, see <http://www.gnu.org/licenses/>.
0016 */
0017 
0018 #ifndef PHONON_VLC_MIME_H
0019 #define PHONON_VLC_MIME_H
0020 
0021 #include <QtCore/QStringList>
0022 
0023 namespace Phonon {
0024 namespace VLC {
0025 
0026 static QStringList mimeTypeList()
0027 {
0028     // In CMake we null-terminate this list for ease of iteration.
0029     const char *c_strings[] = @PHONON_VLC_MIME_TYPES_C_ARRAY@;
0030 
0031     QStringList list;
0032     int i = 0;
0033     while (c_strings[i])
0034         list.append(QLatin1String(c_strings[i++]));
0035     return list;
0036 }
0037 
0038 } // namespace VLC
0039 } // namespace Phonon
0040 
0041 #endif // PHONON_VLC_MIME_H