|
Krita Source Code Documentation
|
#include <KisAndroidDonations.h>
Inheritance diagram for KisAndroidDonations:Public Types | |
| enum class | State { Unknown = 0 , Checking = 1 , Unavailable = 2 , NoSupport = 3 , Supporter = 4 } |
Public Slots | |
| void | slotManageSubscription (const QString &productId) |
| void | slotManageSubscriptions () |
| void | slotStartDonationFlow () |
Signals | |
| void | sigShowDonationManagementDialogRequested () |
| void | sigSplashDialogDismissed () |
| void | sigStateChanged () |
| void | sigStateUpdateReceived (int state, long long ownedProductFlags) |
Public Member Functions | |
| QVector< KisSupporterProduct > | getCurrentProducts () const |
| bool | isShowDonationManagementDialogPending () const |
| void | setShowDonationManagementDialogPending (bool pending) |
| bool | shouldShowSupporterBadge () const |
| void | startBillingFlowFor (const QString &productId, const QString &offerToken) |
| State | state () const |
Static Public Member Functions | |
| static KisAndroidDonations * | instance () |
| static void | setLoaded (bool loaded) |
| static void | setLoadingText (const QString &text) |
| static void | showDonationDialog (bool splash) |
Private Slots | |
| void | slotUpdateState (int state, long long ownedProductFlags) |
Private Member Functions | |
| bool | isProductOwned (const QString &productId) const |
| KisAndroidDonations (QObject *parent=nullptr) | |
| void | syncState () |
Private Attributes | |
| long long | m_ownedProductFlags {0L} |
| bool | m_showDonationManagementDialogPending {false} |
| State | m_state {State::Unknown} |
Friends | |
| class | KisApplication |
Definition at line 14 of file KisAndroidDonations.h.
|
strong |
| Enumerator | |
|---|---|
| Unknown | |
| Checking | |
| Unavailable | |
| NoSupport | |
| Supporter | |
Definition at line 21 of file KisAndroidDonations.h.
|
explicitprivate |
Definition at line 213 of file KisAndroidDonations.cpp.
References sigStateUpdateReceived(), and slotUpdateState().
| QVector< KisSupporterProduct > KisAndroidDonations::getCurrentProducts | ( | ) | const |
Definition at line 149 of file KisAndroidDonations.cpp.
References KisSupporterProductAvailability, and KisSupporterProductType.
|
static |
Definition at line 72 of file KisAndroidDonations.cpp.
|
private |
Definition at line 224 of file KisAndroidDonations.cpp.
|
inline |
Definition at line 44 of file KisAndroidDonations.h.
|
static |
Definition at line 82 of file KisAndroidDonations.cpp.
|
static |
Definition at line 87 of file KisAndroidDonations.cpp.
| void KisAndroidDonations::setShowDonationManagementDialogPending | ( | bool | pending | ) |
Definition at line 139 of file KisAndroidDonations.cpp.
References m_showDonationManagementDialogPending, and sigShowDonationManagementDialogRequested().
| bool KisAndroidDonations::shouldShowSupporterBadge | ( | ) | const |
Definition at line 134 of file KisAndroidDonations.cpp.
References isProductOwned(), m_state, and Supporter.
|
static |
Definition at line 96 of file KisAndroidDonations.cpp.
References KisSplashScreen::getImageSource(), length(), and source().
|
signal |
|
signal |
|
signal |
|
signal |
|
slot |
Definition at line 195 of file KisAndroidDonations.cpp.
|
slot |
Definition at line 190 of file KisAndroidDonations.cpp.
|
slot |
Definition at line 185 of file KisAndroidDonations.cpp.
References showDonationDialog().
|
privateslot |
Definition at line 204 of file KisAndroidDonations.cpp.
References m_ownedProductFlags, m_state, sigStateChanged(), and state().
| void KisAndroidDonations::startBillingFlowFor | ( | const QString & | productId, |
| const QString & | offerToken ) |
Definition at line 174 of file KisAndroidDonations.cpp.
|
inline |
Definition at line 40 of file KisAndroidDonations.h.
|
private |
Definition at line 232 of file KisAndroidDonations.cpp.
|
friend |
Definition at line 17 of file KisAndroidDonations.h.
|
private |
Definition at line 81 of file KisAndroidDonations.h.
|
private |
Definition at line 82 of file KisAndroidDonations.h.
|
private |
Definition at line 80 of file KisAndroidDonations.h.