Qmmp
Loading...
Searching...
No Matches
winfileassoc.h
1/* smplayer, GUI front-end for mplayer.
2 Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net>
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 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 General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
18
19 Winfileassoc.h
20 Handles file associations in Windows
21 Author: Florin Braghis (florin@libertv.ro)
22*/
23
24#ifndef WINFILEASSOC_H
25#define WINFILEASSOC_H
26
27#include <QString>
28#include <QStringList>
29#include "qmmpui_export.h"
30
34class QMMPUI_EXPORT WinFileAssoc
35{
36protected:
37 QString m_AppName;
38
39protected:
40 bool VistaGetDefaultApps(const QStringList &extensions, QStringList& registeredExt);
41 int VistaSetAppsAsDefault(const QStringList& extensions);
42
43public:
44 WinFileAssoc(const QString AppName="Qmmp");
45 //Checks the registry to see which extensions are registered with SMPlayer
46 bool GetRegisteredExtensions(const QStringList& extensionsToCheck, QStringList& registeredExtensions);
47 int CreateFileAssociations(const QStringList& fileExtensions);
48};
49
50#endif