File indexing completed on 2024-12-15 04:01:00

0001 /*
0002  * SPDX-FileCopyrightText: 2019-2023 Mattia Basaglia <dev@dragon.best>
0003  *
0004  * SPDX-License-Identifier: GPL-3.0-or-later
0005  */
0006 
0007 #ifndef TELEGRAMINTENT_HPP
0008 #define TELEGRAMINTENT_HPP
0009 
0010 #include <QString>
0011 
0012 namespace glaxnimate::android {
0013 
0014 class TelegramIntent
0015 {
0016 public:
0017     class Result
0018     {
0019     public:
0020         Result(const QString& message = {}) : message_(message) {}
0021 
0022         explicit operator bool() const
0023         {
0024             return message_.isEmpty();
0025         }
0026 
0027         const QString& message() const
0028         {
0029             return message_;
0030         }
0031 
0032     private:
0033         QString message_;
0034     };
0035 
0036     Result send_stickers(const QStringList& filenames, const QStringList& emoji);
0037 };
0038 
0039 } // namespace glaxnimate::android
0040 
0041 #endif // TELEGRAMINTENT_HPP