[Kde-finance-apps] SoK coding time

Brian Cappello briancappello at gmail.com
Thu Jun 3 17:28:46 CEST 2010


On Thu, Jun 3, 2010 at 4:50 AM, santosh kumar <santosh.k66 at gmail.com> wrote:

> exams about to be over in next  two days :D
>
>
>
> I have started with my work ,but will need sometime to chalk out the
> schedule.
>
> I need some help.
>
> can we use  dcop Knotify to send notification from a server to an
> invidual machine. if not can u suggest an alternative routine?
>
> how do u send emails to people from your appplication without using a
> mail client ? Is it weird? I'm a novice and u have to sculpt me
> initially.
>
> if this is not possible how do I use Kmail for the same?
>
> I am trying to go over KDevelop and cmake thing myself from random
> sources. Can someone suggest me great sources so that I can go beyond
> the reading phase in a couple of days.
>

This is just what's been helpful to me for my style of learning, but, if you
haven't already done so I guess I'd just recommend that during the reading
phase it's best to just get any standalone code running, even if it's not
directly related to your project.
http://techbase.kde.org/Development/Tutorials/Using_KXmlGuiWindow and the
following 4-5 tutorials might be a good place to start. That way, if you
don't already have it, you can at least get a better grip on how to make
your own cmake files for your own standalone code. Then once you've
understood how all that works, you can focus on massaging the code to better
fit your goals.

As for example code, IMO the "best" examples are usually the smallest
programs. I found the KEuroCalc project Thomas mentioned to be very
useful... the code is simple enough, split up as a GUI frontend and a DBus
backend, and shows how to make cmake work with multiple
directories/programs. Sources can be grabbed from its kde-apps page:
http://kde-apps.org/content/show.php/keurocalc?content=26033
When it comes to finding other examples, personally, I just browsed kde-apps
until I found something that looked like it might have functionality like
what I wanted, and then I dug through the sources to see what was under the
hood. I wish I could say I knew of a better way...

alvaro ,as per your specification I am keeping the source and
> notification different from core program  so they can be customized as
> per need.
>
> Bryan, I suppose you are creating a backend based on SQLlite, what all
> fields do you plan to have ? Will you have a time stamp field too?
>

I'll probably be using a database of some sort for private internal storage
of at least intraday and company info/stats information, but as far as
gaining access to that information, client applications (eg you) will all
need to call DBus "functions" (aka interfaces in DBus-speak). And/or maybe
DBus signals/slots. How familiar are you with address spaces and the
differences between threads and processes and inter-thread communication
(ITC) versus inter-process communication (IPC) and all that good stuff? (If
that all sounds esoteric that's totally cool, you don't necessarily need to
know much about all that stuff, but knowing how much you do know might help
towards better explanations... :)

>
> please treat me as  a novice while replying and refrain from esoteric
> replies . Is it possible to possible to query a database so that it
> returns a struct datatype?


I still have a fair amount of code to crank out before I'll have a more
accurate idea of exactly how it'll work, but, a struct seems a likely
candidate for intraday data. (It's being worked on... shouldn't be too long
until I at least get something functional that you can interface with
working... ;) The way I'm thinking it'll work is the client will tell the
backend (via DBus) that it wants to start watching a symbol. The backend
gets the request, downloads some data and gets itself setup, and sends a
signal to the client telling them the data for that symbol is ready. Then,
the client can "query" the backend (via DBus) for whatever information they
want. At least for intraday data, there will also be a way for the client to
"register" with the backend to receive broadcasted updates for whenever a
certain symbol's data changes. As for the intraday query, it will return at
least this information, but in what exact form is still to-be-determined:
QString? DateAndTime
AlkValue Open
AlkValue High
AlkValue Low
AlkValue Close
AlkValue? Volume

any help on the code front or any page
> suggestion?
>

>  I am reading 12 hours next couple of days so if anyone wants me to
> go through some stuff they think is useful kindly recommend.
>
>  there must be some similar applications (which gets some input from
> an user ,queries a database, do some processing and sends some
> notifications,mails ).It will be great if someone suggest me one.
>
> want ot get something working ,that is the biggest motivator ,u see.
>
> waitng for responses
>
> your's truely (humbly if u like it that way)
> santosh kumar
> _______________________________________________
> Kde-finance-apps mailing list
> Kde-finance-apps at kde.org
> https://mail.kde.org/mailman/listinfo/kde-finance-apps
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-finance-apps/attachments/20100603/0ecf107c/attachment.htm 


More information about the Kde-finance-apps mailing list