MProfile.cpp

[ Python Module : MProfile ]

Contents


1. class Profile

[ created from class Profile ]

self.PT_Unknown

[ Constant: int ]
/ Any profile, default argument for ListProfiles().

self.PT_Any

[ Constant: int ]
/ This profile belongs to a folder.

self.PT_FolderProfile

[ Constant: int ]

Profile_CreateGlobalConfig(filename)

[ Static member : returns Profile * ]
/ Create a normal Profile object

Profile_CreateProfile(classname,parent)

[ Static member : returns Profile * ]
/ Create a Profile object for a plugin module

Profile_CreateModuleProfile(classname,parent)

[ Static member : returns Profile * ]
/ Create a dummy Profile just inheriting from the top level

Profile_CreateEmptyProfile(parent)

[ Static member : returns Profile * ]

Profile_DeleteGlobalConfig()

[ Static member : returns void ]

readEntry(key,defaultvalue)

[ Member : returns String ]
/ Write back the character value.

writeEntry(key,Value)

[ Member : returns bool ]
@} / set the path within the profile,just like cd

SetPath(path)

[ Member : returns void ]
/ return true if the entry is defined

HasEntry(key)

[ Member : returns bool ]
/ delete the entry group specified by path

DeleteGroup(path)

[ Member : returns void ]
/ return the name of the profile

GetName()

[ Member : returns String ]

IsExpandingEnvVars()

[ Member : returns bool ]
/ set the flag which tells if we should auto expand env vars

SetExpandEnvVars(bDoIt)

[ Member : returns void ]