File indexing completed on 2024-11-17 04:43:12

0001 /*
0002     SPDX-FileCopyrightText: 2019 Volker Krause <vkrause@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef KANDROIDEXTRAS_ACTIVITY_H
0008 #define KANDROIDEXTRAS_ACTIVITY_H
0009 
0010 #include "kandroidextras_export.h"
0011 
0012 namespace KAndroidExtras {
0013 
0014 class Intent;
0015 
0016 /** Methods around android.app.Activity. */
0017 namespace Activity
0018 {
0019     /** Returns the Intent that started the activity. */
0020     KANDROIDEXTRAS_EXPORT Intent getIntent();
0021 
0022     /** Same as QtAndroid::startActivity(), but with exception handling. */
0023     KANDROIDEXTRAS_EXPORT bool startActivity(const Intent &intent, int receiverRequestCode); // TODO add callback arg
0024 }
0025 
0026 }
0027 
0028 #endif // KANDROIDEXTRAS_ACTIVITY_H