Skip to content
Snippets Groups Projects
Commit 9689b5d4 authored by Emmanuel Lepage Vallée's avatar Emmanuel Lepage Vallée Committed by Stepan Salenikovich
Browse files

account: Add missing introspection macros


Allows accounts to be created using bindings other than C++ and
also allow the "GammaRay" introspection debugger to work.

Change-Id: I20af7073c01d3002463908daff97073f3fd23a8d
Reviewed-by: default avatarNicolas Jäger <nicolas.jager@savoirfairelinux.com>
parent 18307272
No related branches found
No related tags found
No related merge requests found
...@@ -352,7 +352,7 @@ class LIB_EXPORT Account : public ItemBase { ...@@ -352,7 +352,7 @@ class LIB_EXPORT Account : public ItemBase {
*Perform an action *Perform an action
* @return If the state changed * @return If the state changed
*/ */
bool performAction(Account::EditAction action); Q_INVOKABLE bool performAction(Account::EditAction action);
Account::EditState editState() const; Account::EditState editState() const;
//Getters //Getters
...@@ -460,10 +460,10 @@ class LIB_EXPORT Account : public ItemBase { ...@@ -460,10 +460,10 @@ class LIB_EXPORT Account : public ItemBase {
uint internalId () const; uint internalId () const;
QString lastSipRegistrationStatus () const; QString lastSipRegistrationStatus () const;
bool exportOnRing (const QString& password) const; Q_INVOKABLE bool exportOnRing (const QString& password) const;
bool registerName (const QString& password, const QString& name) const; Q_INVOKABLE bool registerName (const QString& password, const QString& name) const;
bool lookupName (const QString& name ) const; Q_INVOKABLE bool lookupName (const QString& name ) const;
bool lookupAddress (const QString& address ) const; Q_INVOKABLE bool lookupAddress(const QString& address ) const;
bool isUsedForOutgogingCall () const; bool isUsedForOutgogingCall () const;
uint totalCallCount () const; uint totalCallCount () const;
...@@ -575,6 +575,7 @@ class LIB_EXPORT Account : public ItemBase { ...@@ -575,6 +575,7 @@ class LIB_EXPORT Account : public ItemBase {
QSharedPointer<AccountPrivate> d_ptr; QSharedPointer<AccountPrivate> d_ptr;
Q_DECLARE_PRIVATE(Account) Q_DECLARE_PRIVATE(Account)
Q_DISABLE_COPY(Account)
Q_SIGNALS: Q_SIGNALS:
///The account state (Invalid,Trying,Registered) changed ///The account state (Invalid,Trying,Registered) changed
...@@ -603,8 +604,8 @@ class LIB_EXPORT Account : public ItemBase { ...@@ -603,8 +604,8 @@ class LIB_EXPORT Account : public ItemBase {
/// contact request accepted /// contact request accepted
void contactRequestAccepted(const ContactRequest*); void contactRequestAccepted(const ContactRequest*);
}; };
// Q_DISABLE_COPY(Account)
Q_DECLARE_METATYPE(Account*) Q_DECLARE_METATYPE(Account*)
Q_DECLARE_METATYPE(const Account*)
Q_DECLARE_METATYPE(Account::RegistrationState) Q_DECLARE_METATYPE(Account::RegistrationState)
Q_DECLARE_METATYPE(Account::EditAction) Q_DECLARE_METATYPE(Account::EditAction)
Q_DECLARE_METATYPE(Account::Protocol) Q_DECLARE_METATYPE(Account::Protocol)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment