tdesktop/Telegram/SourceFiles/pspecific_mac_p.h

85 lines
2.4 KiB
C
Raw Normal View History

2014-06-14 19:32:11 +00:00
/*
This file is part of Telegram Desktop,
the official desktop version of Telegram messaging app, see https://telegram.org
2014-06-14 19:32:11 +00:00
Telegram Desktop 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 3 of the License, or
(at your option) any later version.
It 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.
Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
Copyright (c) 2014 John Preston, https://desktop.telegram.org
2014-06-14 19:32:11 +00:00
*/
#pragma once
class PsMacWindowData;
class PsMacWindowPrivate {
public:
PsMacWindowPrivate();
void setWindowBadge(const QString &str);
2014-06-14 19:32:11 +00:00
void startBounce();
void updateDelegate();
2014-06-14 19:32:11 +00:00
2015-03-19 11:24:23 +00:00
void showNotify(uint64 peer, int32 msgId, const QPixmap &pix, const QString &title, const QString &subtitle, const QString &msg, bool withReply);
void clearNotifies(uint64 peer = 0);
void enableShadow(WId winId);
2015-07-13 17:55:59 +00:00
bool filterNativeEvent(void *event);
2014-06-14 19:32:11 +00:00
virtual void activeSpaceChanged() {
}
virtual void darkModeChanged() {
}
2015-03-19 11:24:23 +00:00
virtual void notifyClicked(unsigned long long peer, int msgid) {
2014-06-14 19:32:11 +00:00
}
2015-03-19 11:24:23 +00:00
virtual void notifyReplied(unsigned long long peer, int msgid, const char *str) {
2014-06-14 19:32:11 +00:00
}
~PsMacWindowPrivate();
PsMacWindowData *data;
};
void objc_holdOnTop(WId winId);
bool objc_darkMode();
void objc_showOverAll(WId winId, bool canFocus = true);
void objc_bringToBack(WId winId);
void objc_activateWnd(WId winId);
void objc_debugShowAlert(const QString &str);
void objc_outputDebugString(const QString &str);
bool objc_idleSupported();
bool objc_idleTime(int64 &idleTime);
2015-01-21 10:20:23 +00:00
bool objc_showOpenWithMenu(int x, int y, const QString &file);
void objc_showInFinder(const QString &file, const QString &path);
void objc_openFile(const QString &file, bool openwith);
void objc_start();
void objc_finish();
bool objc_execUpdater();
void objc_execTelegram();
void objc_registerCustomScheme();
2015-08-12 18:02:20 +00:00
void objc_activateProgram(WId winId);
bool objc_moveFile(const QString &from, const QString &to);
void objc_deleteDir(const QString &dir);
QString objc_appDataPath();
QString objc_downloadPath();
QString objc_currentCountry();
QString objc_currentLang();
QString objc_convertFileUrl(const QString &url);