[PC-BSD Dev] Splitted libpcbsd and bug report tool

Lars Engels lars.engels at 0x20.net
Tue Feb 12 07:04:50 PST 2013


On Tue, Feb 12, 2013 at 04:36:09PM +0200, Yuri Momotiuk wrote:
> Hello
> 
> I have some progress with simple pc-bugreport tool and libpcbsd split.
> 
> You can check sources from my assembla repo:
> 
> *svn co
> https://subversion.assembla.com/svn/pcbsd-extras/trunk/experimental/src-qt4*
> 
> libpcbsd is splitted for (please read changes below):
> ** libpcbsd-utils - utils without Qt ui dependancies*
> To  avoid trivial names collisions namespace *pcbsd* was added.
> For switching to those library you should:
> 1. Change library name and includepath in your .pro file:
> *
> *
> *LIBS+= -lpcbsd-utils*
> *
> *
> *INCLUDEPATH+= ../libpcbsd/utils*
> 
> 2. Use pcbsd namespace
> 
> *#include "pcbsd-utils"*
> *using namespace pcbsd;*
> 
> *BE AWARE! Function quickUserInputBox is absent in libpcbsd-utils and Utils
> class. *Now it is in libpcbsd-ui in UI class, so you should call it like
> this:
> 
> *pcbsd::UI::quickUserInputBox(...);
> *
> 
> Also I have added two function into Utils:
> installedDesktops() and currentDesktop() to get list of installed desktop
> environments or just current desktop environment info (using de-info script)
> 
> **libpcbsd-ui - UI related staff (like widgets and so on)*
> For switching to those library you should:
> 1. Change library name and includepath in your .pro file:
> *
> *
> *LIBS+= -lpcbsd-ui*
> *
> *
> *INCLUDEPATH+= ../libpcbsd/ui*
> 
> I'm not using pcbsd namespace for widgets.
> 
> Also I have add two classes to libpcbsd-utils:
> 
> class PCApplication - base class for pcbsd util application. This is a
> child of QApplication with translations loading.
> 
> In common case you may write your main function like:
> 
> *#include "pcbsd-ui.h"*
> *...*
> *int main(argc, argv)*
> *{*
> *    PCApplication(argc, argv,"pc-application"); // last param is a name of
> file with translations*
> *...*
> *}*
> 
> class PCSingleApplication - same for single instance application
> (unfinished yet)
> 
> 
> If you like this changes (including pc-bugreport) I can commit it into
> pcbsd repo and finish work there. After commit current libpcbsd still will
> be present.
> 
> 
> -- 
> Best regards, Yuri Momotyuk

> _______________________________________________
> Dev mailing list
> Dev at lists.pcbsd.org
> http://lists.pcbsd.org/mailman/listinfo/dev


While it's not exactly the same like you did, it might be worth adding
the crash reporter?

https://wiki.freebsd.org/SummerOfCode2012/AutomatedKernelCrashReportingSystem
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.pcbsd.org/pipermail/dev/attachments/20130212/a664f086/attachment.bin>


More information about the Dev mailing list