Re: KNewStuff3 vs. KNS3 vs. KNewStuff (was: Re: What are the plans with CamelCase includes?)

2014-01-13 Thread David Faure
On Saturday 11 January 2014 02:42:20 Friedrich W. H. Kossebau wrote:
 There the used namespace does not match the module name:
 namespace is KNS3, the module name KNewStuff3.

That's not a problem, the KIOCore module uses namespace (and therefore prefix) 
KIO.

I just saw this mail, after my reply to reviewboard. It seems that I missed 
one thing: that the actual C++ namespace is KNS3.

Then there is indeed the option of making it KNS3/File and kns3/file.h, for 
more consistency (this time with the C++ namespace), at the cost of a 
greater SIC. But you could install knewstuff3/file.h forwarding headers for 
compatibility.

-- 
David Faure, fa...@kde.org, http://www.davidfaure.fr
Working on KDE, in particular KDE Frameworks 5

___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: KNewStuff3 vs. KNS3 vs. KNewStuff (was: Re: What are the plans with CamelCase includes?)

2014-01-13 Thread Friedrich W. H. Kossebau
Am Montag, 13. Januar 2014, 09:40:57 schrieb David Faure:
 On Saturday 11 January 2014 02:42:20 Friedrich W. H. Kossebau wrote:
  There the used namespace does not match the module name:
  namespace is KNS3, the module name KNewStuff3.
 
 That's not a problem, the KIOCore module uses namespace (and therefore
 prefix) KIO.
 
 I just saw this mail, after my reply to reviewboard. It seems that I missed
 one thing: that the actual C++ namespace is KNS3.

(And I missed before that PREFIX is also used for generating the forwarding 
path inside the CamelCase header, tested before only with KNewStuff3 as prefix 
and then did change to KNS3 without e.g. recompiling Okteta, just did make 
install in frameworks/knewstuff and that worked (tm), blame on me :) )

 Then there is indeed the option of making it KNS3/File and kns3/file.h, for
 more consistency (this time with the C++ namespace), at the cost of a
 greater SIC. But you could install knewstuff3/file.h forwarding headers for
 compatibility.

Would agree that this option is the more consistent one.

Those knewstuff3/file.h forwarding headers you are proposing, they would be 
installed from KDE4Support, right? To [...]/include/KF5/knewstuff3, with the 
pattern...
file entry.h contains: #include kns3/entry.h

And all include/KF5/KDE/KNS3/* forwarding headers would be changed from 
#include knewstuff3/file.h to #include kns3/file.h as well.

Would update/prepare RRs for both kde4support and knewstuff modules, if I got 
the proposal right and noone objects.

Cheers
Friedrich
___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: KNewStuff3 vs. KNS3 vs. KNewStuff (was: Re: What are the plans with CamelCase includes?)

2014-01-13 Thread David Faure
On Monday 13 January 2014 17:50:25 Friedrich W. H. Kossebau wrote:
 Those knewstuff3/file.h forwarding headers you are proposing, they would be 
 installed from KDE4Support, right? To [...]/include/KF5/knewstuff3, with
 the pattern...
 file entry.h contains: #include kns3/entry.h

Ah, good idea. There's a bunch of forwarding headers I wrote for SC reasons 
that should move to kde4support too...
Well, including knewstuffbutton.h, for knewstuff. You'll move it too?

 And all include/KF5/KDE/KNS3/* forwarding headers would be changed from 
 #include knewstuff3/file.h to #include kns3/file.h as well.

Yep.

 Would update/prepare RRs for both kde4support and knewstuff modules, if I
 got  the proposal right and noone objects.

Sounds good to me.

-- 
David Faure, fa...@kde.org, http://www.davidfaure.fr
Working on KDE, in particular KDE Frameworks 5

___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel