EldoS | Feel safer!

Software components for data protection, secure storage and transfer

QT and UNC

#26118
Posted: 08/13/2013 15:14:15
by Charles Reimers (Basic support level)
Joined: 08/13/2013
Posts: 4

I am working with SolFS OS version inside a QT cross-platform environment and want to be able to operate on files without exposing a lettered drive in Windows. It appears that QT does not understand the UNC file path. Can anyone suggest a solution to my conundrum?

Thanks.
#26120
Posted: 08/14/2013 02:13:37
by Volodymyr Zinin (Team)

Please specify version of SolFS and a code snippet you use to create the mounting point.
Thanks.
#26165
Posted: 08/16/2013 13:44:22
by Charles Reimers (Basic support level)
Joined: 08/13/2013
Posts: 4

Vladimir,

I was trying something along the lines of:

Code
wchar_t *path;
mStorage->GetMountingPoint(0, (PSolFSWideChar)path);
QString qsPath = QString("\\\\.\\") + QString::fromUtf16((ushort*)path) + '\\';
delete[] path;
QDir fsDir(path);

// do operations on fsDir


After further investigation, this seems to be a limitation of QT, and not really a UNC question.

Thanks
#26166
Posted: 08/16/2013 13:47:11
by Eugene Mayevski (Team)

IIRC some (not all) .NET classes don't handle UNC paths right as well. But there's not much we can do on our side with this. Maybe one can report this issue to Qt?


Sincerely yours
Eugene Mayevski
#26170
Posted: 08/19/2013 03:47:30
by Volodymyr Zinin (Team)

In the SolFS OS v5, which is prerelease now, there is a possibility to create a "real" UNC mounting point. Like "\\server_name\share_name", where "server_name" and "share_name" are arbitrary strings. So if Qt can work with UNC paths then it should work with such mounting points too. For details see the description of the SOLFS_SYMLINK_NETWORK flag.
#26171
Posted: 08/19/2013 03:54:48
by Eugene Mayevski (Team)

I believe QT just doesn't understand \\ in the beginning of the path.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 5062 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!