Ignore:
Timestamp:
03/12/14 09:28:46 (7 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0.2, releng/10.0.3
Children:
535e584
Parents:
2aba8c5
Message:

Add a new file/classes to libpcbsd - utils.
1) SystemFlags? : public enumeration of different flag types, and a static function to set a particular system flag (SystemFlags::setFlat(SYSFLAG, QString contents) )
2) SystemFlagWatcher? : Class that can be used in Qt utilites for alerting when a new system flag is available (as well as a public function to look for new flags within the last X minutes - for when a utility just started up)

Still needs testing in an actual utility.
One known restriction: setFlag() needs to be run by a root-permissions utility after computer startup before non-root utilities can successfully set flags. This is because the /tmp/pcbsdflags dir needs to be initially created first with 666 permissions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/libpcbsd/utils/utils.pro

    r2e26400 rcab198c  
    1414        pcbsd-utils.h \ 
    1515        pcbsd-hardware.h \ 
    16         pcbsd-DLProcess.h 
     16        pcbsd-DLProcess.h \ 
     17        pcbsd-sysFlags.h 
    1718 
    1819SOURCES += utils.cpp \ 
    1920        hardware.cpp \ 
    2021        netif.cpp \ 
    21         pcbsd-DLProcess.cpp 
     22        pcbsd-DLProcess.cpp \ 
     23        pcbsd-sysFlags.cpp 
    2224 
    2325include.path=/usr/local/include/ 
Note: See TracChangeset for help on using the changeset viewer.