QNetworkAccessManager::setProxy example - qt

may someone give an example of using properly QNetworkAccessManager::setProxy, i meant i primaly a java developer mostly using HttpClient all the time.
Thx!

Ricardo, in Qt source code directory go to "examples/declarative/cppextensions/networkaccessmanagerfactory" or go to http://qt.gitorious.org/qt/qt/trees/4.7/examples/declarative/cppextensions/networkaccessmanagerfactory. There is nothing complicated in that class method so you should be able to use it.

Related

ATMEL SAMB11/BTLC1000 simple GAP/GATT example

I hope someone could give me a quick example how to configure the BTLE-Device correctly without the huge BLE-Manager library. Simply a litte GAP Authetication and one GATT-Service would be enough to start. I've managed to create my own GATT-Service and characteristics without the need for BLE-Manager but thanks to several defines, typedefs etc. I can't figure out how to do this for GAP and how to register my callbacks for it. Maybe someone has used these modules before and can give me a quick example how it's done?
Since you mentioned One GATT-Service with Authentication Atmel-BAS [Battery Service] example is easy one. To better understand you can download the getting started guide see the architecture. In-order to register the callbacks you need to check the order of callbacks in function ble_event_manager in ble_manager.c file.

Does elmahr supports console application?

I am using elmahr for my web application. I want to extend it to my batches and console application. Do we have any direct references for the same? Thanks in Advance
Regards
Amal Thomas
ElmahR does not support that out of the box, but there is a fork that implements something very similar to what you did:
https://stackoverflow.com/a/16139769/720780
From there you could probably extract what you need. I never tried it personally but the idea is very promising, so I'd advise you have a look.

I need to write a script for Eiskalt DC++ in QTscript. How do I start learning to use Qtscript?

I do not know Javascript and have never used Qt. I do use c++ but I don't think that is much help? It is a pretty simple script but I can't find any tutorial etc for Qtscript.
Qt's own documentation is a good place to start. Try Making Applications Scriptable and Qt Script Examples.

SQLite with MFC

I want to use SQLite within my MFC application.
for that, i'll create an object whose job is to interact directly with the DB(SQLite) to insulate the rest of the app from the DB code.
can anyone point me to a good tutorial ?
i'll need operations such as (create,delete,insert,update,createdb,dropdb and so on...)
Thanks.
There's a page in the SQLite site that lists many available wrappers - here. The C++ wrapper Daniel mentions in his answer is probably the most common one, though it does not support Unicode and the SQLite dll that comes with it is quite dated. There's a Unicode version of that wrapper here, but it's a bit buggy and requires some more work. It could, however, save you the trouble of writing the whole thing from scratch.
Have a look at this. This was really easy to port to MFC classes, but it will get you started.
http://www.codeproject.com/KB/database/CppSQLite.aspx
Or you can just do #include "sqlite3.h", add sqlite3.lib to your linker and use sqlite3.dll directly with the C api. That's what I did in my MFC app.
And you can even statically link sqlite3 into your app. Download the amalgamation and include it! It adds about 400 k.
Please define your problem more clearly.
sqlite can be coding with c, and you can read the sample in their site.

Flash Logging API

Can anyone recommend a good (AS3) logging API for Flash/AIR/Flex? I need something to capture and record mouse and keyboard events in addition to coded events. Preferably something well documented/supported. Thanks in advance.
I've been using Thunderbolt. It allows you to see your log results in Firebug.
I developed and manage Loggee!, a Flash/Flex Logging Tool: http://davidbuhler.org/loggee-flex-logging-tool/
You must see http://sourceforge.net/projects/log4flash/
with no more....
bye bye
I would recommend Arthropod if you are looking for a development tool (this wasn't very clear in your question), if it's to log your client's behavior, I'm not aware of any tool sorry.
I always end up writing my own logging solutions. They generally are very simple compared to the rest of the project, and by writing my own I can tailor it exactly to what I need. Whereas using a pre-built one, always seems like either it is too over-engineered and complex to use, or it's too simple and lacking a couple features I need.
Try to use Log5F logging utility for ActionScript 3.0

Resources