git-svn-id: svn://db.shs.com.ru/pip@678 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -313,6 +313,20 @@ void PIFile::configureFromFullPathDevice(const PIString & full_path) {
|
||||
}
|
||||
|
||||
|
||||
PIPropertyStorage PIFile::constructVariantDevice() const {
|
||||
PIPropertyStorage ret;
|
||||
PIVariantTypes::File f;
|
||||
f.file = path();
|
||||
ret.addProperty("path", f);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
void PIFile::configureFromVariantDevice(const PIPropertyStorage & d) {
|
||||
setPath(d.propertyValueByName("path").toString());
|
||||
}
|
||||
|
||||
|
||||
PIString PIFile::strType(const PIIODevice::DeviceMode type) {
|
||||
switch (type) {
|
||||
case PIIODevice::ReadOnly: return "rb";
|
||||
|
||||
Reference in New Issue
Block a user