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

List:       kde-panel-devel
Subject:    Problem accessing DataEngine from child object
From:       Shaun Reich <predator106 () gmail ! com>
Date:       2010-07-01 4:08:25
Message-ID: AANLkTinAhieExTj3HIjTFSqnLOKUUfZ2MZ8YMrix8HE1 () mail ! gmail ! com
[Download RAW message or body]

Hi, I'm trying to get my KdmEngine to compile but I am receiving
undefined references.

Basically, the KdmEngine, at ctor time creates MyObject by passing
'this' to it's constructor. It requires a KdmEngine* so that I can
access the DataEngine from that class and I figured it would make more
sense/be easier than adding more methods to the service, especially
since I don't like the excess code that it would create (duplicates
really).

So now in MyObject I would like to be able to call m_dataEngine->somemethod...

Well, even after including kdmengine.h where needed, I am experiencing
the aforementioned problem. I don't know what cmake magic I
require...or is using the service the only way?

The MyObject is added to the sources of kdm in the CMakeLists.txt file
and used there. The dataengine is a subdirectory that I call
add_subdirectory(dataengine) on.

-- 
Shaun Reich,
KDE Developer (www.kde.org)
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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