Re: Files, config, and welcome (again)

2012-07-30 Thread Michał 'rysiek' Woźniak
Dnia niedziela, 29 lipca 2012 o 17:05:24 Kevin Krammer napisał(a):
 On Saturday, 2012-07-28, Michał 'rysiek' Woźniak wrote:
  I get:
  
  The module 'org.kde' is not installed
  
  Any hints? Not being able to save the tasks between Plasma
  sessions is a bit of a dealbreaker for a ToDo plasmoid... ;)
 
 I think some of those are part of the kdeqmlplugin which is part
 of kdepim- runtime. Maybe it wasn't built or installed properly.

Apparently, I would need to have 4.8 installed here, I only have 4.7.

For now implemented saving task status to config with a nasty 
JSON.stringify() call. It works and it's not even that costly, 
performance-wise.

Anyway, the Tasker aka Perfect ToDo-oid is now published and online, 
comments and suggestions welcome:
http://kde-look.org/content/show.php?content=152988

Thanks for all your help.

-- 
Pozdrawiam
Michał rysiek Woźniak

Fundacja Wolnego i Otwartego Oprogramowania


signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Files, config, and welcome (again)

2012-07-30 Thread Kevin Krammer
On Monday, 2012-07-30, Michał 'rysiek' Woźniak wrote:
 Dnia niedziela, 29 lipca 2012 o 17:05:24 Kevin Krammer napisał(a):
  On Saturday, 2012-07-28, Michał 'rysiek' Woźniak wrote:
   I get:
   
   The module 'org.kde' is not installed
   
   Any hints? Not being able to save the tasks between Plasma
   sessions is a bit of a dealbreaker for a ToDo plasmoid... ;)
  
  I think some of those are part of the kdeqmlplugin which is part
  of kdepim- runtime. Maybe it wasn't built or installed properly.
 
 Apparently, I would need to have 4.8 installed here, I only have 4.7.

This is strange, the directory was added in April 2010, so it should even be 
part of kdepim-runtime 4.6
More interestingly I have it in my install from source prefix but not in the 
one from packages (4.8) so it could be a packaging problem.

Could be the same for you, maybe contact the distributor's KDE team.

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring


signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Files, config, and welcome (again)

2012-07-30 Thread Kevin Krammer
On Monday, 2012-07-30, Kevin Krammer wrote:
 On Monday, 2012-07-30, Michał 'rysiek' Woźniak wrote:
  Dnia niedziela, 29 lipca 2012 o 17:05:24 Kevin Krammer napisał(a):
   On Saturday, 2012-07-28, Michał 'rysiek' Woźniak wrote:
I get:

The module 'org.kde' is not installed

Any hints? Not being able to save the tasks between Plasma
sessions is a bit of a dealbreaker for a ToDo plasmoid... ;)
   
   I think some of those are part of the kdeqmlplugin which is part
   of kdepim- runtime. Maybe it wasn't built or installed properly.
  
  Apparently, I would need to have 4.8 installed here, I only have 4.7.
 
 This is strange, the directory was added in April 2010, so it should even
 be part of kdepim-runtime 4.6
 More interestingly I have it in my install from source prefix but not in
 the one from packages (4.8) so it could be a packaging problem.

Actually I was wrong on this one, I have kdepim-runtime 4.4 (Debian/Unstable), 
so it can't have that plugin yet.

 Could be the same for you, maybe contact the distributor's KDE team.

Unless you are also on Debian this still stands though.

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring


signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Files, config, and welcome (again)

2012-07-30 Thread Michał 'rysiek' Woźniak
Dnia poniedziałek, 30 lipca 2012 o 14:49:03 Kevin Krammer napisał(a):
 On Monday, 2012-07-30, Kevin Krammer wrote:
  On Monday, 2012-07-30, Michał 'rysiek' Woźniak wrote:
   Dnia niedziela, 29 lipca 2012 o 17:05:24 Kevin Krammer 
napisał(a):
On Saturday, 2012-07-28, Michał 'rysiek' Woźniak wrote:
 I get:
 
 The module 'org.kde' is not installed
 
 Any hints? Not being able to save the tasks between Plasma
 sessions is a bit of a dealbreaker for a ToDo plasmoid...
 ;)

I think some of those are part of the kdeqmlplugin which is
part of kdepim- runtime. Maybe it wasn't built or installed
properly.
   
   Apparently, I would need to have 4.8 installed here, I only
   have 4.7.
  
  This is strange, the directory was added in April 2010, so it
  should even be part of kdepim-runtime 4.6
  More interestingly I have it in my install from source prefix but
  not in the one from packages (4.8) so it could be a packaging
  problem.
 
 Actually I was wrong on this one, I have kdepim-runtime 4.4
 (Debian/Unstable), so it can't have that plugin yet.
 
  Could be the same for you, maybe contact the distributor's KDE
  team.
 
 Unless you are also on Debian this still stands though.

Yes, Debian Unstable (or, to be precise, Aptosid).

I would also love any comments on the plasmoid itself, if you had a 
chance of testing it.

-- 
Pozdrawiam
Michał rysiek Woźniak

Fundacja Wolnego i Otwartego Oprogramowania


signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Files, config, and welcome (again)

2012-07-29 Thread Kevin Krammer
On Saturday, 2012-07-28, Michał 'rysiek' Woźniak wrote:
 Dnia piątek, 20 lipca 2012 o 09:35:35 Kevin Krammer napisał(a):
  On Thursday, 2012-07-19, Michał 'rysiek' Woźniak wrote:
   Hi again,
   
   Got entangled in a lot of other work, finally getting back to the
   QML/JS ToDo plasmoid of mine.
   
   I still cannot find any docs on accessing the calendar (either
   directly or through Akonadi) from QML/JS. I would appreciate any
   hints/links on that - is that at all possible?..
  
  Check if some of the stuff in kdepim/mobile/tasks can help you with
  that.
 
 It looks promising, but when I try to copy the imports:
 
 import Qt 4.7 as QML
 import org.kde 4.5
 import org.kde.akonadi 4.5 as Akonadi
 import org.kde.pim.mobileui 4.5 as KPIM
 import org.kde.kcal 4.5 as KCal
 import org.kde.akonadi.tasks 4.5 as Tasks
 
 I get:
 
 The module 'org.kde' is not installed
 
 Any hints? Not being able to save the tasks between Plasma sessions is
 a bit of a dealbreaker for a ToDo plasmoid... ;)

I think some of those are part of the kdeqmlplugin which is part of kdepim-
runtime. Maybe it wasn't built or installed properly.

Some modules will come from code in kdepim/mobile itself, no idea whether they 
got installed as QML plugins or registered by the mobile apps' C++ code.

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring


signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Files, config, and welcome (again)

2012-07-28 Thread Michał 'rysiek' Woźniak
Dnia piątek, 20 lipca 2012 o 09:35:35 Kevin Krammer napisał(a):
 On Thursday, 2012-07-19, Michał 'rysiek' Woźniak wrote:
  Hi again,
  
  Got entangled in a lot of other work, finally getting back to the
  QML/JS ToDo plasmoid of mine.
  
  I still cannot find any docs on accessing the calendar (either
  directly or through Akonadi) from QML/JS. I would appreciate any
  hints/links on that - is that at all possible?..
 
 Check if some of the stuff in kdepim/mobile/tasks can help you with
 that.

It looks promising, but when I try to copy the imports:

import Qt 4.7 as QML
import org.kde 4.5
import org.kde.akonadi 4.5 as Akonadi
import org.kde.pim.mobileui 4.5 as KPIM
import org.kde.kcal 4.5 as KCal
import org.kde.akonadi.tasks 4.5 as Tasks

I get:

The module 'org.kde' is not installed

Any hints? Not being able to save the tasks between Plasma sessions is 
a bit of a dealbreaker for a ToDo plasmoid... ;)

-- 
Pozdrawiam
Michał rysiek Woźniak

Fundacja Wolnego i Otwartego Oprogramowania


signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Files, config, and welcome (again)

2012-07-20 Thread Kevin Krammer
On Thursday, 2012-07-19, Michał 'rysiek' Woźniak wrote:
 Hi again,
 
 Got entangled in a lot of other work, finally getting back to the
 QML/JS ToDo plasmoid of mine.
 
 I still cannot find any docs on accessing the calendar (either
 directly or through Akonadi) from QML/JS. I would appreciate any
 hints/links on that - is that at all possible?..

Check if some of the stuff in kdepim/mobile/tasks can help you with that.

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring


signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Files, config, and welcome (again)

2012-07-19 Thread Michał 'rysiek' Woźniak
Hi again,

Got entangled in a lot of other work, finally getting back to the 
QML/JS ToDo plasmoid of mine.

I still cannot find any docs on accessing the calendar (either 
directly or through Akonadi) from QML/JS. I would appreciate any 
hints/links on that - is that at all possible?..

Thanks!

-- 
Pozdrawiam
Michał rysiek Woźniak

Fundacja Wolnego i Otwartego Oprogramowania


signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Files, config, and welcome (again)

2012-04-26 Thread Aaron J. Seigo
On Sunday, April 15, 2012 10:14:13 Djuro Drljaca wrote:
 Hello,
 
 
 as far as I know it is very important to know where you tested it. If you
 only tested it in the plasmoidveiwer then this is probably the reason it
 doesn't work. 

.. which would mean the plasmoid has a bug and needs to implement 
configChanged.

-- 
Aaron J. Seigo

signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Files, config, and welcome (again)

2012-04-23 Thread Michał 'rysiek' Woźniak
Hi there,

Thanks for all the answers, I was travelling and couldn't get back on 
this sooner.


Dnia niedziela, 15 kwietnia 2012 o 10:14:13 Djuro Drljaca napisał(a):
 as far as I know it is very important to know where you tested it.
 If you only tested it in the plasmoidveiwer then this is probably
 the reason it doesn't work. Install the plasmoid on the system and
 try it there ... then I think it probably will work.

Yes, you were right. Indeed, when added to the plasma desktop the 
config does work. Thanks!



Dnia niedziela, 15 kwietnia 2012 o 18:22:52 Mark napisał(a):
 If you're making a qml only plasmoid then KCal is not possible
 since it doesn't have a qml binding (as far as I know...).

Well, I am trying to stick with QML/JS. I have absolutely no 
experience with C++ and learning it just to write a plasmoid seems an 
overkill...



Dnia niedziela, 15 kwietnia 2012 o 18:45:11 Kevin Krammer napisał(a):
 In either case using KDE's todo classes is certainly the right way
 to go, since it will allow the applet to show/edit data created by
 other todo/task handling applications such as KOrganizer or
 Zanshin (http://zanshin.kde.org/)

Zanshin looks great, thanks for the info. And yes, using something 
that would talk with the Calendar seems a great idea. Problem is, I 
cannot find any documentation on doing that in QML/JS.

 The Kontact touch related directories in kdepim could be helpful
 here, i.e. those are QML based user interfaces for components that
 are traditionally part of the Kontact suite.

Where can I find those.

 Since Todos/Tasks are another subtype of calendar entry (like
 event) some of the calendar Plasma integration points might be a
 good start as well.

Any link? Can't find that anywhere.



Dnia czwartek, 19 kwietnia 2012 o 18:32:06 Anton Kreuzkamp napisał(a):
 Just read your notes on what it should be able to do. I don't know
 what the akonadi-kcal-solution is able to do. Probably not quite
 everything you want...

O..k. Any docs on it?

 I recommend you to get in touch with the kdepim-gurus and get to
 know what it is able to do and eventually (ideally) how to get the
 missing parts inside akonadi directly, as this is where it
 belongs.

Thanks, will try.

 PS: that means I can delete one item from my todo-list, which is
 Create Akonadi-based Todo-Plasmoid. Yay! :)

Hey, I haven't done it yet! ;)

-- 
Pozdrawiam
Michał rysiek Woźniak

Fundacja Wolnego i Otwartego Oprogramowania


signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Re: Files, config, and welcome (again)

2012-04-19 Thread Anton Kreuzkamp
On Sunday, April 15, 2012 18:22:52 Mark wrote:
 If you're making a qml only plasmoid then KCal is not possible since it
 doesn't have a qml binding (as far as I know...).
The calendar-dataengine has support for todo-items, as they're handled as just 
another type of calendar-entries. You should use that. It uses Akonadi (I 
guess KCal does the same, or Akonadi uses KCal) and thus the data will be 
available all over KDE and it will be possible to store data remotely, for 
free. The dataengine can easily be used from within QML.

Cheers, Anton
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Re: Re: Files, config, and welcome (again)

2012-04-19 Thread Anton Kreuzkamp
Just read your notes on what it should be able to do. I don't know what the 
akonadi-kcal-solution is able to do. Probably not quite everything you want...

I recommend you to get in touch with the kdepim-gurus and get to know what it 
is able to do and eventually (ideally) how to get the missing parts inside 
akonadi directly, as this is where it belongs.

Cheers, Anton

PS: that means I can delete one item from my todo-list, which is Create 
Akonadi-based Todo-Plasmoid. Yay! :)
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Files, config, and welcome (again)

2012-04-15 Thread Djuro Drljaca
Hello,


as far as I know it is very important to know where you tested it. If you
only tested it in the plasmoidveiwer then this is probably the reason it
doesn't work. Install the plasmoid on the system and try it there ... then
I think it probably will work.


Regards,

Djuro Drljaca

On Sun, Apr 15, 2012 at 2:03 AM, Michał 'rysiek' Woźniak rys...@fwioo.plwrote:

 Hello,

 I have already written to this list and some of you might know me from
 other channels (like IRC or StatusNet). Either way - hi and hello!

 Also, I hope I am writing in the right place. If not, do tell and
 point me in the right direction.

 Now, to the point!

 I am writing a Todo/tasks plasmoid, inspired by TaskTimer. Here's my
 braindump about it:
 http://rys.io/en/71

 One thing I am missing at this moment, and am missing dearly, is a way
 to save the state of the tasks (text, elapsed time, etc) so that it
 gets restored upon plasmoid restart (not sure if this is the right
 word). This can be easily done with a simple JSON text file, or even
 an INI file for that matter.

 So basically what I need is either a config store or a way to
 read/write pure text files.

 I tried using the KConfig XT, but surprisingly the values did not get
 saved (yes, main.xml file is created and contains the right stuff);
 this happened even with the kdeexamples configuration example.

 Besides, I am wondering if the rigid structure of KConfig XT files is
 a good bet here; I am adding/removing todo items in the plasmoid, and
 as far as I understand config entries are defined beforehand - so I
 would have to store key-value pairs (in JSON?) within the config XML
 file. Doesn't seem right.

 So, three questions:
  - am I missing something about the KConfig XT approach?
  - maybe there is a better config API for QML/JS plasmoids?
  - is there a way to read/write files from a QML/JS plasmoid?

 I am running KDE SC 4.7.4 in Debian Sid.

 --
 Pozdrawiam
 Michał rysiek Woźniak

 Fundacja Wolnego i Otwartego Oprogramowania

 ___
 Plasma-devel mailing list
 Plasma-devel@kde.org
 https://mail.kde.org/mailman/listinfo/plasma-devel


___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Files, config, and welcome (again)

2012-04-15 Thread Mark
Op 15 apr. 2012 02:20 schreef Michał 'rysiek' Woźniak rys...@fwioo.pl
het volgende:

 Hello,

 I have already written to this list and some of you might know me from
 other channels (like IRC or StatusNet). Either way - hi and hello!

 Also, I hope I am writing in the right place. If not, do tell and
 point me in the right direction.

 Now, to the point!

 I am writing a Todo/tasks plasmoid, inspired by TaskTimer. Here's my
 braindump about it:
 http://rys.io/en/71

 One thing I am missing at this moment, and am missing dearly, is a way
 to save the state of the tasks (text, elapsed time, etc) so that it
 gets restored upon plasmoid restart (not sure if this is the right
 word). This can be easily done with a simple JSON text file, or even
 an INI file for that matter.

 So basically what I need is either a config store or a way to
 read/write pure text files.

 I tried using the KConfig XT, but surprisingly the values did not get
 saved (yes, main.xml file is created and contains the right stuff);
 this happened even with the kdeexamples configuration example.

 Besides, I am wondering if the rigid structure of KConfig XT files is
 a good bet here; I am adding/removing todo items in the plasmoid, and
 as far as I understand config entries are defined beforehand - so I
 would have to store key-value pairs (in JSON?) within the config XML
 file. Doesn't seem right.

 So, three questions:
  - am I missing something about the KConfig XT approach?
  - maybe there is a better config API for QML/JS plasmoids?
  - is there a way to read/write files from a QML/JS plasmoid?

 I am running KDE SC 4.7.4 in Debian Sid.

 --
 Pozdrawiam
 Michał rysiek Woźniak

 Fundacja Wolnego i Otwartego Oprogramowania

 ___
 Plasma-devel mailing list
 Plasma-devel@kde.org
 https://mail.kde.org/mailman/listinfo/plasma-devel


Hi,

I can't really answer your questions since I don't know the answer.
However, I do would like to point you to perhaps some interesting ways to
store your data.

Once you start using Qt5 you can use qtjsondb to store your data.

The option (and best option) you have right now is to use akanodi with the
KCal class
http://api.kde.org/4.x-api/kdepimlibs-apidocs/kcal/html/index.html . It
implements the I calendar specification and also has support for todo
items. Using the KCal classes will also make them show in any app that uses
KCal.

If you're making a qml only plasmoid then KCal is not possible since it
doesn't have a qml binding (as far as I know...).

Just letting you know :)

Mark
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Files, config, and welcome (again)

2012-04-15 Thread Kevin Krammer
On Sunday, 2012-04-15, Mark wrote:

 The option (and best option) you have right now is to use akanodi with the
 KCal class
 http://api.kde.org/4.x-api/kdepimlibs-apidocs/kcal/html/index.html . It
 implements the I calendar specification and also has support for todo
 items. Using the KCal classes will also make them show in any app that uses
 KCal.

Very true, though it might be better to use the respective KCalCore 
equivalents, those are cleaned up implementations.

In either case using KDE's todo classes is certainly the right way to go, 
since it will allow the applet to show/edit data created by other todo/task 
handling applications such as KOrganizer or Zanshin (http://zanshin.kde.org/)

 If you're making a qml only plasmoid then KCal is not possible since it
 doesn't have a qml binding (as far as I know...).

The Kontact touch related directories in kdepim could be helpful here, i.e. 
those are QML based user interfaces for components that are traditionally part 
of the Kontact suite.

Since Todos/Tasks are another subtype of calendar entry (like event) some of 
the calendar Plasma integration points might be a good start as well.

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring


signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Files, config, and welcome (again)

2012-04-14 Thread Michał 'rysiek' Woźniak
Hello,

I have already written to this list and some of you might know me from 
other channels (like IRC or StatusNet). Either way - hi and hello!

Also, I hope I am writing in the right place. If not, do tell and 
point me in the right direction.

Now, to the point!

I am writing a Todo/tasks plasmoid, inspired by TaskTimer. Here's my 
braindump about it:
http://rys.io/en/71

One thing I am missing at this moment, and am missing dearly, is a way 
to save the state of the tasks (text, elapsed time, etc) so that it 
gets restored upon plasmoid restart (not sure if this is the right 
word). This can be easily done with a simple JSON text file, or even 
an INI file for that matter.

So basically what I need is either a config store or a way to 
read/write pure text files.

I tried using the KConfig XT, but surprisingly the values did not get 
saved (yes, main.xml file is created and contains the right stuff); 
this happened even with the kdeexamples configuration example.

Besides, I am wondering if the rigid structure of KConfig XT files is 
a good bet here; I am adding/removing todo items in the plasmoid, and 
as far as I understand config entries are defined beforehand - so I 
would have to store key-value pairs (in JSON?) within the config XML 
file. Doesn't seem right.

So, three questions:
 - am I missing something about the KConfig XT approach?
 - maybe there is a better config API for QML/JS plasmoids?
 - is there a way to read/write files from a QML/JS plasmoid?

I am running KDE SC 4.7.4 in Debian Sid.

-- 
Pozdrawiam
Michał rysiek Woźniak

Fundacja Wolnego i Otwartego Oprogramowania


signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel