Discussion Board

Results 1 to 1 of 1
  1. #1
    Registered User
    Join Date
    Jun 2012

    [solved] Change file attribute

    first of all this is a Qt/native C++ mix, maybe it's the wrong section.

    My problem:
    I want to set a file as ReadOnly in a Qt app, but Qt doesn't have an API for that.

    So I tried a bit.
    added to .pro:
    LIBS += -efsrv.lib\

    added to my class:
    #include <e32base.h>
    #include <bautils.h>
    #include <f32file.h>

    in my method:
    RFs fsSession;

    the problem is it does compile and run without of any errors (CODA shows nothing), but the file still isn't hidden or read only.

    Can somebody tell me what's the problem?
    Thanks in advance


    works fine after a reboot, don't know the problem.
    Last edited by huellif; 2013-08-25 at 22:27.

Similar Threads

  1. How can I change viewbox attribute in svg image?
    By elviin in forum Symbian Media (Closed)
    Replies: 5
    Last Post: 2009-05-07, 09:33
  2. Replies: 4
    Last Post: 2008-08-29, 15:42
  3. Change read-only attribute of RChunk?
    By ioilam in forum Symbian
    Replies: 1
    Last Post: 2007-12-28, 12:42
  4. Replies: 4
    Last Post: 2006-09-05, 15:15
  5. WARNING: JAR file doesn't define required attribute MIDlet-Name?
    By Balmark in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2004-04-27, 13:54

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts