InstallSource Class Reference

#include <installmgr.h>

Collaboration diagram for InstallSource:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void flush ()
SWBuf getConfEnt ()
SWMgrgetMgr ()
 InstallSource (const char *type, const char *confEnt=0)
virtual ~InstallSource ()

Public Attributes

SWBuf caption
SWBuf directory
SWBuf localShadow
SWBuf p
SWBuf source
SWBuf type
SWBuf u
SWBuf uid
void * userData

Private Attributes

SWMgrmgr

Detailed Description

A remote installation source configuration

Definition at line 19 of file installmgr.h.


Constructor & Destructor Documentation

InstallSource::InstallSource ( const char *  type,
const char *  confEnt = 0 
)

Definition at line 713 of file installmgr.cpp.

00713                                                                   {
00714     this->type = type;
00715     mgr = 0;
00716     userData = 0;
00717     if (confEnt) {
00718         SWBuf buf = confEnt;
00719         caption   = buf.stripPrefix('|', true);
00720         source    = buf.stripPrefix('|', true);
00721         directory = buf.stripPrefix('|', true);
00722         u         = buf.stripPrefix('|', true);
00723         p         = buf.stripPrefix('|', true);
00724         uid       = buf.stripPrefix('|', true);
00725 
00726         if (!uid.length()) uid = source;
00727 
00728         removeTrailingSlash(directory);
00729     }
00730 }

InstallSource::~InstallSource (  )  [virtual]

Definition at line 733 of file installmgr.cpp.

00733                               {
00734     if (mgr)
00735         delete mgr;
00736 }


Member Function Documentation

void InstallSource::flush (  ) 

Definition at line 739 of file installmgr.cpp.

00739                           {
00740     if (mgr) {
00741         delete mgr;
00742         mgr = 0;
00743     }
00744 }

SWBuf InstallSource::getConfEnt (  )  [inline]

Definition at line 24 of file installmgr.h.

00024                        {
00025         return caption +"|" + source + "|" + directory + "|" + u + "|" + p + "|" + uid;
00026     }

SWMgr * InstallSource::getMgr (  ) 

Definition at line 747 of file installmgr.cpp.

00747                              {
00748     if (!mgr)
00749         // ..., false = don't augment ~home directory.
00750         mgr = new SWMgr(localShadow.c_str(), true, 0, false, false);
00751     return mgr;
00752 }


Member Data Documentation

Definition at line 27 of file installmgr.h.

Definition at line 29 of file installmgr.h.

Definition at line 35 of file installmgr.h.

Definition at line 20 of file installmgr.h.

Definition at line 31 of file installmgr.h.

Definition at line 28 of file installmgr.h.

Definition at line 34 of file installmgr.h.

Definition at line 30 of file installmgr.h.

Definition at line 32 of file installmgr.h.

Definition at line 36 of file installmgr.h.


The documentation for this class was generated from the following files:

Generated on 18 Mar 2013 for The SWORD Project by  doxygen 1.6.1