Contains a collection of outgoing (sent) Ticket objects ("Glympse history"). More...
#include <IHistoryManager.h>

Public Member Functions | |
General | |
Tools for accessing underlying collection of tickets. | |
| virtual bool | isSynced ()=0 |
| Determines whether local list has already been synced with server. More... | |
| virtual GArray< GTicket >::ptr | getTickets ()=0 |
| Returns the sent ticket list collection ("Glympse history") as an array of ITicket objects. More... | |
| virtual bool | anyActive ()=0 |
| Determines whether there are any active tickets on the list. More... | |
| virtual bool | anyActive (bool siblings)=0 |
| Determines whether there are any active tickets on the list, optionally allowing sibling tickets to be considered. More... | |
| virtual bool | anyActive (bool siblings, bool visible)=0 |
| Determines whether there are any active tickets on the list, optionally allowing sibling tickets and hidden tickets to be considered. More... | |
| virtual void | refresh ()=0 |
| Forcibly pulls updates on last view time and view count for all outgoing tickets (including expired). More... | |
| virtual void | simulateAddedEvents (const GEventListener &listener)=0 |
| This helper method walks through the colleciton of outgoing tickets and sends GE::PLATFORM_TICKET_ADDED event to listener object for all active tickets found on the list. More... | |
| virtual bool | canSend (const GInvite &invite)=0 |
| Determines whether invite can be sent by the platform instance. More... | |
Configuration | |
Tools for adjusting manager's behavior. | |
| virtual void | enablePreSyncEvents (bool enable)=0 |
| Provides host application with an ability to minimize performance overhead caused by numerous events fired during startup and initialization. More... | |
| virtual bool | arePreSyncEventsEnabled ()=0 |
| Checks if events can be fired before platform is fully synchronized with server. | |
| virtual void | enableCancellationTimer (bool enable)=0 |
| Controls the behavior of automatic ticket cancellation. More... | |
| virtual bool | isCancellationTimerEnabled ()=0 |
| Determines whether ticket cancellation is enabled. More... | |
| virtual void | setCancellationTimeout (int32 timeout)=0 |
| Sets ticket cancellation timeout. More... | |
| virtual int32 | getCancellationTimeout ()=0 |
| Gets ticket cancellation timeout. More... | |
| virtual void | setExpirationMode (int32 mode)=0 |
| Ticket expiration mode defines the way platform determines its state (sharing vs. More... | |
| virtual int32 | getExpirationMode ()=0 |
| Gets currently applied ticket expiration mode. More... | |
| virtual void | setXoAListener (const GXoAListener &listener)=0 |
| Sets callback listener to enable per-ticket control of XoA logic. More... | |
| virtual void | triggerXoAUpdate ()=0 |
| Triggers XoAManager to requery Ticket XoA status for each ticket it is listening to, through its IXoAListener. More... | |
Properties | |
Methods for accessing the most commonly used properties of the manager. | |
| virtual int64 | getLastViewTime ()=0 |
| Gets the time of when any of outgoing tickets was last viewed. More... | |
| virtual bool | isSomeoneWatching ()=0 |
Lookup Tools | |
Set of convenience helpers for finding tickets. | |
| virtual GTicket | findTicketByTicketId (const GString &ticketId)=0 |
| Gets the ITicket object that matches the given ticket ID. More... | |
| virtual GTicket | findTicketByInviteCode (const GString &code)=0 |
| Gets the ITicket object that matches the given ticket invite code. More... | |
Public Member Functions inherited from Glympse::ICommon | |
| virtual int32 | retain ()=0 |
| Add a reference to our object in a COM-like way. | |
| virtual int32 | release ()=0 |
| Release a reference to our object in a COM-like way. | |
| virtual int32 | hold ()=0 |
| Add a reference to our object in a COM-like way. | |
| virtual int32 | unhold ()=0 |
| Release a reference to our object in a COM-like way. | |
| virtual int32 | hashCode ()=0 |
| Returns an integer hash code for this object. | |
| virtual bool | equals (const GCommonObj &o)=0 |
| Compares this instance with the specified object and indicates if they are equal. More... | |
| virtual GString | toString ()=0 |
| Returns a string containing a concise, human-readable description of this object. More... | |
| virtual void | attachObject (const GCommon &obj)=0 |
| Asociates arbitrary object with the instance. | |
| virtual GCommon | extractObject ()=0 |
| Extracts associated object or NULL if no association is established. | |
Additional Inherited Members | |
Protected Member Functions inherited from Glympse::ICommon | |
| virtual | ~ICommon () |
| Destructor is protected to deny explicit object deallocation. More... | |
Contains a collection of outgoing (sent) Ticket objects ("Glympse history").
The sent ticket list contains all of the tickets you have created and sent. This includes tickets that are still active as well as one that have expired.
The list of outgoing tickets is always restored from server upon successful authentication and is never cached locally to provide the most reliable and consisten behavior.
|
pure virtual |
Determines whether there are any active tickets on the list.
|
pure virtual |
Determines whether there are any active tickets on the list, optionally allowing sibling tickets to be considered.
| siblings | Indicates whether sibling tickets should be considered. |
|
pure virtual |
Determines whether there are any active tickets on the list, optionally allowing sibling tickets and hidden tickets to be considered.
| siblings | Indicates whether sibling tickets should be considered. |
| visible | Indicates whether tickets must be visible to be considered. |
|
pure virtual |
Determines whether invite can be sent by the platform instance.
Platform checks invite type, host OS and installed 3rd party applications into account when preparing the result.
The method does not perform any kind of address validation. It only checks hypotetical possibility of sending the invite using any of client or server side delivery mechanisms.
| invite | Invite object to be analyzed. |
|
pure virtual |
Controls the behavior of automatic ticket cancellation.
Ticket cancellation is a mechanism that if enabled prevents platform from retrying ticket creation forever when device loses network connectivity.
Ticket cancellation is disabled by default.
| enable | Pass true to enable the timer. |
|
pure virtual |
Provides host application with an ability to minimize performance overhead caused by numerous events fired during startup and initialization.
The delivery of the following events is controlled by this method.
If this feature is disabled, none of the events above will be fired until GE::PLATFORM_SYNCED_WITH_SERVER is fired.
Pre sync events are enabled by default. The method is supposed to be called synchronously after platform startup in order to make affect.
| enable | Tells whether pre sync events should be enabled or not. |
|
pure virtual |
Gets ticket cancellation timeout.
|
pure virtual |
Gets currently applied ticket expiration mode.
|
pure virtual |
Gets the time of when any of outgoing tickets was last viewed.
Invite creation is also considered as view.
Returns the sent ticket list collection ("Glympse history") as an array of ITicket objects.
The sent ticket list contains all the ticket you have created and sent. This includes tickets that are still active as well as one that have expired.
This list will initially be empty. Once the Glympse API has communicated with the server, the list will be populated to include the complete list of tickets you have sent.
To be notified when the list is first populated, you can register a IEventListener and capture the GE::PLATFORM_SYNCED_WITH_SERVER event.
|
pure virtual |
Determines whether ticket cancellation is enabled.
|
pure virtual |
|
pure virtual |
Determines whether local list has already been synced with server.
It might be useful to differenciate "empty history" case from "not yet synched" case. Platform sends GE::PLATFORM_SYNCED_WITH_SERVER event, when this list is synced with server.
|
pure virtual |
Forcibly pulls updates on last view time and view count for all outgoing tickets (including expired).
The method is mostly intended to refresh stats of expired tickets. Client API pulls updates for active tickets automatically. Client api will also prevent redundant requests to server, so it is not required to check for active tickets before making this call.
|
pure virtual |
Sets ticket cancellation timeout.
Platform uses this value to determine when to stop ticket creation attemps, if device is experiencing continuous network outage.
| timeout | Amount of time in milliseconds during which platform will try to create a ticket. |
|
pure virtual |
Ticket expiration mode defines the way platform determines its state (sharing vs.
not sharing). Major differences between currently supported modes are focused on synchronizing platform state with the server. Depending on applied mode platform can exclusively rely on properties which are synchronized with server (GC::EXPIRATION_MODE_SYNCHRONIZED - default) or take into accounts local modifications that are not synchronized yet (GC::EXPIRATION_MODE_DETACHED).
The method has to be called before platform completes original synchronization with server (see isSynced()).
| mode | Ticket expiration mode to be applied. |
|
pure virtual |
Sets callback listener to enable per-ticket control of XoA logic.
| listener | An implementation of IXoAListener |
|
pure virtual |
This helper method walks through the colleciton of outgoing tickets and sends GE::PLATFORM_TICKET_ADDED event to listener object for all active tickets found on the list.
| listsner | Event listener tht is to be notified on requested events. |
|
pure virtual |
Triggers XoAManager to requery Ticket XoA status for each ticket it is listening to, through its IXoAListener.
If no XoAListener has been set, this is call is ignored.
1.8.4