2013-05-21 22:53:19 +02:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// MediaInfoXP
|
2015-01-25 17:20:37 +01:00
|
|
|
// Copyright (C) 2004-2015 LoRd_MuldeR <MuldeR2@GMX.de>
|
2013-05-21 22:53:19 +02:00
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation; either version 2 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License along
|
|
|
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
//
|
|
|
|
// http://www.gnu.org/licenses/gpl-2.0.txt
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
#include <QFile>
|
|
|
|
|
2013-05-24 23:07:40 +02:00
|
|
|
class QDate;
|
2013-12-07 19:42:07 +01:00
|
|
|
class QWidget;
|
|
|
|
class QIcon;
|
|
|
|
class mixp_icon_t;
|
2013-05-24 23:07:40 +02:00
|
|
|
|
2013-05-21 22:53:19 +02:00
|
|
|
//Helper macros
|
|
|
|
#define MIXP_DELETE_OBJ(PTR) do { if((PTR)) { delete ((PTR)); (PTR) = NULL; } } while (0)
|
2013-05-24 23:07:40 +02:00
|
|
|
#define MIXP_DELETE_ARR(PTR) do { if((PTR)) { delete [] ((PTR)); (PTR) = NULL; } } while (0)
|
2013-05-21 22:53:19 +02:00
|
|
|
#define QWCHAR(STR) reinterpret_cast<const wchar_t*>(STR.utf16())
|
|
|
|
|
2013-12-07 19:42:07 +01:00
|
|
|
//Beep types
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
mixp_beep_info = 0,
|
|
|
|
mixp_beep_warning = 1,
|
|
|
|
mixp_beep_error = 2
|
|
|
|
}
|
|
|
|
mixp_beep_t;
|
|
|
|
|
2014-01-14 23:27:43 +01:00
|
|
|
//Regsitry root
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
mixp_root_classes = 0,
|
|
|
|
mixp_root_user = 1,
|
|
|
|
mixp_root_machine = 2,
|
|
|
|
}
|
|
|
|
mixp_reg_root_t;
|
|
|
|
|
2013-05-21 22:53:19 +02:00
|
|
|
//Utils
|
|
|
|
QString mixp_getTempFolder(QFile **lockfile);
|
2013-12-07 19:42:07 +01:00
|
|
|
bool mixp_clean_folder(const QString &folderPath);
|
2013-05-24 23:07:40 +02:00
|
|
|
QDate mixp_get_build_date(void);
|
|
|
|
QDate mixp_get_current_date(void);
|
2013-12-07 19:42:07 +01:00
|
|
|
mixp_icon_t *mixp_set_window_icon(QWidget *window, const QIcon &icon, const bool bIsBigIcon);
|
|
|
|
void mixp_free_window_icon(mixp_icon_t *icon);
|
|
|
|
bool mixp_beep(int beepType);
|
2014-01-16 02:09:48 +01:00
|
|
|
bool mixp_bring_to_front(const QWidget *window);
|
2014-01-14 23:27:43 +01:00
|
|
|
void mixp_shell_change_notification(void);
|
|
|
|
|
|
|
|
//Regsitry
|
|
|
|
bool mixp_reg_value_write(int rootKey, const QString &keyName, const QString &valueName, const quint32 value);
|
|
|
|
bool mixp_reg_value_write(int rootKey, const QString &keyName, const QString &valueName, const QString &value);
|
|
|
|
bool mixp_reg_value_read(int rootKey, const QString &keyName, const QString &valueName, quint32 &value);
|
|
|
|
bool mixp_reg_key_delete(int rootKey, const QString &keyName);
|
2013-12-07 19:42:07 +01:00
|
|
|
|
|
|
|
//Init
|
|
|
|
void _mixp_global_init(void);
|