[Kget] A taste of the new structure..

Dario Massarin nekkar at libero.it
Sun Feb 27 20:07:44 CET 2005


Unfortunately, I've not been able to finish all the work in this weekend. So I 
will not commit, yet. But I want to give a rough idea about what will be the 
next KGet structure. 
Beware of the fact that nothing is final, yet. Moreover there are still issues 
that need to be resolved. For example it should be possible to extend the 
TransferChanges flags from a specific transfer and be able to know about the 
meaning of these specific flags from the views. We should also provide a way 
to set specific commands the Transfers, and so on.

The important part of the new structure is IMHO the new Job class. In this way 
we have a JobStatus that will be different from the Transfer status (and this 
will resolve some issues Felix just raised). Another important part is the 
TransferHandler class that will be the class managed from the views (the 
views will never have a pointer to a Transfer object anymore).
The scheduler will become a class which performs only scheduling operations 
and manages JobQueue objects. A JobQueue is a list of jobs. We have a class 
Model where we store and organize downloads, searches, into groups.

Comments welcome
	Dario

-------------- next part --------------
A non-text attachment was scrubbed...
Name: job.h
Type: text/x-c++hdr
Size: 1730 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kget/attachments/20050227/a3944e7e/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scheduler.h
Type: text/x-diff
Size: 1448 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kget/attachments/20050227/a3944e7e/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transfergroup.h
Type: text/x-diff
Size: 1001 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kget/attachments/20050227/a3944e7e/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transferhandler.h
Type: text/x-diff
Size: 4486 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kget/attachments/20050227/a3944e7e/attachment-0003.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: model.h
Type: text/x-c++hdr
Size: 4310 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kget/attachments/20050227/a3944e7e/attachment-0004.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jobqueue.h
Type: text/x-diff
Size: 1294 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kget/attachments/20050227/a3944e7e/attachment-0005.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: observer.h
Type: text/x-c++hdr
Size: 1918 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kget/attachments/20050227/a3944e7e/attachment-0006.bin 


More information about the Kget mailing list