"Fossies" - the Fresh Open Source Software Archive

Member "tdesktop-2.6.1/Telegram/SourceFiles/ui/chat/attach/attach_extensions.cpp" (24 Feb 2021, 655 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 "attach_extensions.cpp" see the Fossies "Dox" file reference documentation.

    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 #include "ui/chat/attach/attach_extensions.h"
    9 
   10 namespace Ui {
   11 
   12 const QStringList &ImageExtensions() {
   13     static const auto result = QStringList{
   14         u".bmp"_q,
   15         u".jpg"_q,
   16         u".jpeg"_q,
   17         u".png"_q,
   18         u".gif"_q,
   19     };
   20     return result;
   21 }
   22 
   23 const QStringList &ExtensionsForCompression() {
   24     static const auto result = QStringList{
   25         u".bmp"_q,
   26         u".jpg"_q,
   27         u".jpeg"_q,
   28         u".png"_q,
   29     };
   30     return result;
   31 }
   32 
   33 } // namespace Ui