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) |
| Package * | GetPackage (int iIndex) |
| void | Clear () |
| void | FetchPackages () |
| void | SetStatus (const String &szStatus) |
| String | GetStatus () |
| Type | GetType () |
| void * | GetCookie () |
| void | SetCookie (void *pCookie) |
Classes | |
| class | Private |
... 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()); ...
| Repository::Repository | ( | Type | nType, | |
| const String & | szName, | |||
| const String & | szURL, | |||
| Window * | pNotifyWindow = NULL, |
|||
| int | iMessageType = 0 | |||
| ) |
| Repository::~Repository | ( | ) |
| 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 | ) |
1.5.1-p1