Im trying to create a global class so I can access it anywhere, but it's not working, I get the error:
a storage class can only be specified for objects and functions
Does anyone know where I'm going wrong?
Here is my h file:
extern class Payments : public QObject
{
Q_OBJECT
public:
    Payments(QObject *parent = 0);
    virtual ~Payments();
    void purchase(const QString &id, const QString &sku, const QString &name, const QString &metadata);
    void getExisting(bool refresh);
    void getPrice(const QString &id, const QString &sku);
public slots:
    void purchaseResponse();
    void existingPurchasesResponse();
    void priceResponse();
signals:
    void purchaseResponseSuccess(const QString &receiptString);
    void existingPurchasesResponseSuccess(const QString &receiptsString);
    void priceResponseSuccess(const QString &price);
    void infoResponseError(int errorCode, const QString &errorText);
private:
    bb::platform::PaymentManager *paymentManager;
};
 
     
     
     
    