"Fossies" - the Fresh Open Source Software Archive

Member "tdesktop-2.6.1/Telegram/SourceFiles/platform/win/specific_win.h" (24 Feb 2021, 1348 Bytes) of package /linux/misc/tdesktop-2.6.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "specific_win.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 2.5.9_vs_2.6.0.

    1 /*
    2 This file is part of Telegram Desktop,
    3 the official desktop application for the Telegram messaging service.
    4 
    5 For license and copyright information please follow this link:
    6 https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
    7 */
    8 #pragma once
    9 
   10 #include "platform/platform_specific.h"
   11 #include "base/platform/win/base_windows_h.h"
   12 
   13 namespace Data {
   14 class LocationPoint;
   15 } // namespace Data
   16 
   17 namespace Platform {
   18 
   19 inline void SetWatchingMediaKeys(bool watching) {
   20 }
   21 
   22 inline void IgnoreApplicationActivationRightNow() {
   23 }
   24 
   25 inline QImage GetImageFromClipboard() {
   26     return {};
   27 }
   28 
   29 inline bool TrayIconSupported() {
   30     return true;
   31 }
   32 
   33 inline bool SkipTaskbarSupported() {
   34     return true;
   35 }
   36 
   37 namespace ThirdParty {
   38 
   39 void start();
   40 
   41 inline void finish() {
   42 }
   43 
   44 } // namespace ThirdParty
   45 } // namespace Platform
   46 
   47 inline void psCheckLocalSocket(const QString &) {
   48 }
   49 
   50 void psWriteDump();
   51 
   52 void psActivateProcess(uint64 pid = 0);
   53 QString psAppDataPath();
   54 QString psAppDataPathOld();
   55 void psAutoStart(bool start, bool silent = false);
   56 void psSendToMenu(bool send, bool silent = false);
   57 
   58 QRect psDesktopRect();
   59 
   60 int psCleanup();
   61 int psFixPrevious();
   62 
   63 void psNewVersion();
   64 
   65 inline QByteArray psDownloadPathBookmark(const QString &path) {
   66     return QByteArray();
   67 }
   68 inline void psDownloadPathEnableAccess() {
   69 }
   70 
   71 bool psLaunchMaps(const Data::LocationPoint &point);