forked from wang-bin/QtAV
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
272 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,220 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>English</string> | ||
<key>CFBundleDocumentTypes</key> | ||
<array> | ||
<dict> | ||
<key>CFBundleTypeExtensions</key> | ||
<array> | ||
<string>AAC</string> | ||
<string>AC3</string> | ||
<string>AIFF</string> | ||
<string>M4A</string> | ||
<string>MKA</string> | ||
<string>MP3</string> | ||
<string>OGG</string> | ||
<string>PCM</string> | ||
<string>VAW</string> | ||
<string>WAV</string> | ||
<string>WAW</string> | ||
<string>WMA</string> | ||
<string>aac</string> | ||
<string>ac3</string> | ||
<string>aiff</string> | ||
<string>m4a</string> | ||
<string>mka</string> | ||
<string>mp3</string> | ||
<string>ogg</string> | ||
<string>pcm</string> | ||
<string>vaw</string> | ||
<string>wav</string> | ||
<string>waw</string> | ||
<string>wma</string> | ||
</array> | ||
<key>CFBundleTypeIconFile</key> | ||
<string>document.icns</string> | ||
<key>CFBundleTypeName</key> | ||
<string>Audio file</string> | ||
<key>CFBundleTypeRole</key> | ||
<string>Viewer</string> | ||
<key>LSTypeIsPackage</key> | ||
<false/> | ||
<key>NSPersistentStoreTypeKey</key> | ||
<string>XML</string> | ||
</dict> | ||
<dict> | ||
<key>CFBundleTypeExtensions</key> | ||
<array> | ||
<string>*</string> | ||
<string>*</string> | ||
<string>3GP</string> | ||
<string>3IV</string> | ||
<string>3gp</string> | ||
<string>3iv</string> | ||
<string>ASF</string> | ||
<string>AVI</string> | ||
<string>CPK</string> | ||
<string>DAT</string> | ||
<string>DIVX</string> | ||
<string>DV</string> | ||
<string>FLAC</string> | ||
<string>FLI</string> | ||
<string>FLV</string> | ||
<string>H264</string> | ||
<string>I263</string> | ||
<string>M2TS</string> | ||
<string>M4V</string> | ||
<string>MKV</string> | ||
<string>MOV</string> | ||
<string>MP2</string> | ||
<string>MP4</string> | ||
<string>MPEG</string> | ||
<string>MPG</string> | ||
<string>MPG2</string> | ||
<string>MPG4</string> | ||
<string>NSV</string> | ||
<string>NUT</string> | ||
<string>NUV</string> | ||
<string>OGG</string> | ||
<string>OGM</string> | ||
<string>QT</string> | ||
<string>RM</string> | ||
<string>RMVB</string> | ||
<string>VCD</string> | ||
<string>VFW</string> | ||
<string>VOB</string> | ||
<string>WEBM</string> | ||
<string>WMV</string> | ||
<string>asf</string> | ||
<string>avi</string> | ||
<string>cpk</string> | ||
<string>dat</string> | ||
<string>divx</string> | ||
<string>dv</string> | ||
<string>flac</string> | ||
<string>fli</string> | ||
<string>flv</string> | ||
<string>h264</string> | ||
<string>i263</string> | ||
<string>m2ts</string> | ||
<string>m4v</string> | ||
<string>mkv</string> | ||
<string>mov</string> | ||
<string>mp2</string> | ||
<string>mp4</string> | ||
<string>mpeg</string> | ||
<string>mpg</string> | ||
<string>mpg2</string> | ||
<string>mpg4</string> | ||
<string>nsv</string> | ||
<string>nut</string> | ||
<string>nuv</string> | ||
<string>ogg</string> | ||
<string>ogm</string> | ||
<string>qt</string> | ||
<string>rm</string> | ||
<string>rmvb</string> | ||
<string>vcd</string> | ||
<string>vfw</string> | ||
<string>vob</string> | ||
<string>webm</string> | ||
<string>wmv</string> | ||
</array> | ||
<key>CFBundleTypeIconFile</key> | ||
<string>document.icns</string> | ||
<key>CFBundleTypeName</key> | ||
<string>Movie file</string> | ||
<key>CFBundleTypeRole</key> | ||
<string>Viewer</string> | ||
<key>LSTypeIsPackage</key> | ||
<false/> | ||
<key>NSPersistentStoreTypeKey</key> | ||
<string>XML</string> | ||
</dict> | ||
<dict> | ||
<key>CFBundleTypeExtensions</key> | ||
<array> | ||
<string>AQT</string> | ||
<string>ASS</string> | ||
<string>JSS</string> | ||
<string>RT</string> | ||
<string>SMI</string> | ||
<string>SRT</string> | ||
<string>SSA</string> | ||
<string>SUB</string> | ||
<string>TXT</string> | ||
<string>UTF</string> | ||
<string>aqt</string> | ||
<string>ass</string> | ||
<string>jss</string> | ||
<string>rt</string> | ||
<string>smi</string> | ||
<string>srt</string> | ||
<string>ssa</string> | ||
<string>sub</string> | ||
<string>txt</string> | ||
<string>utf</string> | ||
</array> | ||
<key>CFBundleTypeIconFile</key> | ||
<string>document.icns</string> | ||
<key>CFBundleTypeName</key> | ||
<string>Subtitles file</string> | ||
<key>CFBundleTypeRole</key> | ||
<string>Viewer</string> | ||
<key>LSTypeIsPackage</key> | ||
<false/> | ||
<key>NSPersistentStoreTypeKey</key> | ||
<string>XML</string> | ||
</dict> | ||
</array> | ||
<key>CFBundleExecutable</key> | ||
<string>player</string> | ||
<key>CFBundleIconFile</key> | ||
<string>QtAV.icns</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.qtav.@EXECUTABLE@</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>QtAV @EXECUTABLE@</string> | ||
<key>CFBundleDisplayName</key> | ||
<string>QtAV @EXECUTABLE@</string> | ||
<key>LSMinimumSystemVersionByArchitecture</key> | ||
<dict> | ||
<key>x86_64</key> | ||
<string>10.6.0</string> | ||
</dict> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>@SHORT_VERSION@</string> | ||
<key>CFBundleVersion</key> | ||
<string>@FULL_VERSION@</string> | ||
<key>NSHighResolutionCapable</key> | ||
<true/> | ||
<key>CFBundleURLTypes</key> | ||
<array> | ||
<dict> | ||
<key>CFBundleTypeRole</key> | ||
<string>Viewer</string> | ||
<key>CFBundleURLName</key> | ||
<string>Streaming Protocol</string> | ||
<key>CFBundleURLSchemes</key> | ||
<array> | ||
<string>mms</string> | ||
<string>mmst</string> | ||
<string>http</string> | ||
<string>httpproxy</string> | ||
<string>rtp</string> | ||
<string>rtsp</string> | ||
<string>ftp</string> | ||
<string>udp</string> | ||
<string>smb</string> | ||
</array> | ||
</dict> | ||
</array> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 1,26 @@ | ||
#ifndef COMMON_H | ||
#define COMMON_H | ||
|
||
#include <QtCore/QObject> | ||
#include <QtCore/QStringList> | ||
#include <QtCore/QUrl> | ||
#include "qoptions.h" | ||
#include "Config.h" | ||
#include "ScreenSaver.h" | ||
|
||
extern "C" { | ||
COMMON_EXPORT void _link_hack(); | ||
} | ||
|
||
QOptions COMMON_EXPORT get_common_options(); | ||
void COMMON_EXPORT load_qm(const QStringList& names, const QString &lang = "system"); | ||
// if appname ends with 'desktop', 'es', 'angle', software', 'sw', set by appname. otherwise set by command line option glopt | ||
void COMMON_EXPORT set_opengl_backend(const QString& glopt = "auto", const QString& appname = QString()); | ||
|
||
class COMMON_EXPORT AppEventFilter : public QObject | ||
{ | ||
public: | ||
AppEventFilter(QObject *player = 0, QObject* parent = 0); | ||
QUrl url() const; | ||
virtual bool eventFilter(QObject *obj, QEvent *ev); | ||
private: | ||
QObject *m_player; | ||
}; | ||
|
||
#endif // COMMON_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -155,3 155,4 @@ unset(PROJECT_SRCPATH) | |
unset(PROJECT_LIBDIR) | ||
unset(PROJECT_TARGETNAME) | ||
|
||
QMAKE_INFO_PLIST = $$PWD/Info.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters