SkyGI::Repository Class Reference

Collaboration diagram for SkyGI::Repository:
[legend]
List of all members.

Public Types

enum  Type { LOCAL = 0, ONLINE }

Public Member Functions

 Repository (Type nType, const String &szName, const String &szURL, Window *pNotifyWindow=NULL, int iMessageType=0)
 ~Repository ()
String GetName ()
String GetURL ()
void SetName (const String &szName)
void SetURL (const String &szURL)
void AddPackage (Package *pPackage)
PackageGetPackage (int iIndex)
void Clear ()
void FetchPackages ()
void SetStatus (const String &szStatus)
String GetStatus ()
Type GetType ()
void * GetCookie ()
void SetCookie (void *pCookie)

Classes

class  Private

Detailed Description

Manage software packages

Description:
With the Repository objects it is possible to manage local installed software as well as online software stores. Member functions include getting a list of available packages from online software stores as well as downloading and installing these packages. Futhermore it is very easy to create auto-update notifiers for your application.
Example:
        ...
  int i=0;
        Package *pPackage;

        Repository pRepository(Repository::ONLINE, "", "http://www.skyos.org/services/softwarestore");
        pRepository.FetchPackages();

        while (pPackage = pRep.GetPackage(i++))
                printf("Available package: %s\n", pPackage->GetName().c_str());
                ...
See also:
Package


Member Enumeration Documentation

enum SkyGI::Repository::Type

Enumerator:
LOCAL 
ONLINE 


Constructor & Destructor Documentation

Repository::Repository ( Type  nType,
const String szName,
const String szURL,
Window pNotifyWindow = NULL,
int  iMessageType = 0 
)

Repository::~Repository (  ) 


Member Function Documentation

String Repository::GetName (  ) 

String Repository::GetURL (  ) 

void Repository::SetName ( const String szName  ) 

void Repository::SetURL ( const String szURL  ) 

void Repository::AddPackage ( Package pPackage  ) 

Package * Repository::GetPackage ( int  iIndex  ) 

void Repository::Clear (  ) 

void Repository::FetchPackages (  ) 

void Repository::SetStatus ( const String szStatus  ) 

String Repository::GetStatus (  ) 

Repository::Type Repository::GetType (  ) 

void * Repository::GetCookie (  ) 

void Repository::SetCookie ( void *  pCookie  ) 


Generated on Thu Dec 13 18:14:10 2007 for SkyGI by  doxygen 1.5.1-p1