[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Re: [Kde-pim] Advice
From:       Cornelius Schumacher <schumacher () kde ! org>
Date:       2001-11-27 8:23:20
[Download RAW message or body]

On Monday 26 November 2001 22:45, Mark Westcott wrote:
> On Monday 26 November 2001 9:39 am, Cornelius Schumacher wrote:
> > On Monday 26 November 2001 08:43, Mark Westcott wrote:
> > > I'm doing some work on KOrganizer at the moment, and want to add a
> > > function that is callable from anywhere within the KOrganizer code (ie
> > > event editors, calendar views etc.).  This is to advoid an awful lot of
> > > code duplication. Where would the best place be to put this code, or do
> > > I need a new .h/.cpp file?
> >
> > It depends. What kind of functions? CalendarView might be the class you
> > are looking for, it owns all the views and dialogs.
>
> Silly me, should have stipulated.  Its basically just a function, that
> takes a QString of the uid of a contact, and uses DCOP to open up
> KAddressbook and opens the contact up (i've added a function to
> KAddressbook to do this). This needs to be called from within the editors,
> calendar views, 'whats new' view, and alarm notification (not sure about
> this one yet).

I would propose to add a signal to the editors and the views, which is 
connected to a slot in CalendarView, which then calls the addressbook, but 
I'm still not sure, what you are really aiming for. Perhaps you could send us 
the code you have written so far?

-- 
Cornelius Schumacher <schumacher@kde.org>
_______________________________________________
kde-pim mailing list
kde-pim@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-pim

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic