PrevNextUpHome SophiaFramework UNIVERSE 5.3
SFBLicense
Wrapper Class for the ILicense interface.
#include <SFBLicense.h.hpp>
class SFBLicense : public SFBBase;
SFMTYPEDEFWRAPPER(SFBLicense)

Inheritance diagram

 Inheritance diagram of SFBLicenseClass

Version

BREW 2.0 BREW 2.1 BREW 3.1 BREW 4.0
O O O O

Reference

BREW API ILicense

Member

Public Functions
SFCError DecrementUsesRemaining( Void )
Decrease by one the usage count on the application.
AEELicenseType GetInfo( UInt32Ptr info )
Return the type of licensing that applies to the currently running application module. It also provides expiration information specific to the type of licensing.
AEEPriceType GetPurchaseInfo( AEELicenseType* license , UInt32Ptr expire , UInt32Ptr seq )
Return the manner in which the application was purchased. It optionally fills the license type and expiration.
SFCError IncrementUsesRemaining( Void )
Increase by one the usage count on the application.
Bool IsExpired( Void )
Return true if the current module has expired.
static
SFBLicenseSmp
NewInstance( SFCErrorPtr exception = null )
Create a new SFBLicense instance.
static
SFBLicenseSmp
NewInstance( AEECLSID id , SFCErrorPtr exception = null )
Create a new SFBLicense instance.
SFCError SetUsesRemaining( UInt32 count )
Update the usage count on the application.
Protected Functions
static
SFBBaseSmp
FactoryByCreate( AEECLSID id , SFCErrorPtr exception = null ) (inherits from SFBBase)
Create the instance for the specified ClassID's interface.
static
SFBBaseSmp
FactoryByQuery( SFBQuerySmpConstRef query , AEECLSID id , SFCErrorPtr exception = null ) (inherits from SFBBase)
Create the instance for the specified ClassID's interface using the SFBQuery instance.

SFBLicense::DecrementUsesRemaining
Decrease by one the usage count on the application.
[ public ]
SFCError DecrementUsesRemaining(Void);

Reference

BREW API ILICENSE_DecrementUsesRemaining


SFBLicense::GetInfo
Return the type of licensing that applies to the currently running application module. It also provides expiration information specific to the type of licensing.
[ public ]
AEELicenseType GetInfo(
    UInt32Ptr info   // expiration information specific to the AEELicenseType returned
);

Reference

BREW API ILICENSE_GetInfo


SFBLicense::GetPurchaseInfo
Return the manner in which the application was purchased. It optionally fills the license type and expiration.
[ public ]
AEEPriceType GetPurchaseInfo(
    AEELicenseType* license   // pointer to the license type 
    UInt32Ptr expire          // pointer to the expiration value 
    UInt32Ptr seq             // pointer to the sequence number of downloaded version 
);

Reference

BREW API ILICENSE_GetPurchaseInfo


SFBLicense::IncrementUsesRemaining
Increase by one the usage count on the application.
[ public ]
SFCError IncrementUsesRemaining(Void);

Reference

BREW API ILICENSE_IncrementUsesRemaining


SFBLicense::IsExpired
Return true if the current module has expired.
[ public ]
Bool IsExpired(Void);

Reference

BREW API ILICENSE_IsExpired


SFBLicense::NewInstance
Create a new SFBLicense instance.
[ public, static ]
SFBLicenseSmp NewInstance(
    SFCErrorPtr exception = null   // Error
);
[ public, static ]
SFBLicenseSmp NewInstance(
    AEECLSID id                    // Class ID
    SFCErrorPtr exception = null   // Error
);

SFBLicense::SetUsesRemaining
Update the usage count on the application.
[ public ]
SFCError SetUsesRemaining(
    UInt32 count   // new usage count
);

Reference

BREW API ILICENSE_SetUsesRemaining