<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kconfig.git/autotests/kconfig_compiler/test8c.h.ref, branch v5.96.0-rc1</title>
<subtitle>hurd kconfig.git</subtitle>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/kconfig.git/'/>
<entry>
<title>kconfig_compiler: add override to generated destructors</title>
<updated>2021-04-05T12:23:47+00:00</updated>
<author>
<name>David Faure</name>
<email>faure@kde.org</email>
</author>
<published>2021-04-04T11:52:53+00:00</published>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/kconfig.git/commit/?id=27f1d268d9f960b72081b74b0688fdc5fc212ff5'/>
<id>27f1d268d9f960b72081b74b0688fdc5fc212ff5</id>
<content type='text'>
This fixes the clang warning
globalsettings_kmail.h:58:5: warning: '~GlobalSettingsBase' overrides a destructor but is not marked 'override' [-Wsuggest-destructor-override]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes the clang warning
globalsettings_kmail.h:58:5: warning: '~GlobalSettingsBase' overrides a destructor but is not marked 'override' [-Wsuggest-destructor-override]
</pre>
</div>
</content>
</entry>
<entry>
<title>Add an is&lt;PropertyName&gt;Immutable to know if a property is immutable</title>
<updated>2020-02-04T15:09:29+00:00</updated>
<author>
<name>Méven Car</name>
<email>meven.car@enioka.com</email>
</author>
<published>2020-02-04T15:03:52+00:00</published>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/kconfig.git/commit/?id=d46739294d04c72af1e434e414e1c012d7e78a42'/>
<id>d46739294d04c72af1e434e414e1c012d7e78a42</id>
<content type='text'>
Summary:
Add a utility function is&lt;Parameter&gt;Immutable to access immutability quickly.
Generated classes uses them internally to avoid code redundance.

Sample:
```
    /**
      Set blocked-by-default
    */
    void setBlockedByDefault( bool v )
    {
      if (v != mBlockedByDefault &amp;&amp; !isBlockedByDefaultImmutable() )  {
        mBlockedByDefault = v;
        Q_EMIT blockedByDefaultChanged();
      }
    }

    /**
      Is blocked-by-default Immutable
    */
    bool isBlockedByDefaultImmutable()
    {
      return isImmutable( QStringLiteral( "blockedByDefault" ) );
    }
```

```
    /**
      Set org.kde.ActivityManager.ResourceScoringEnabled
    */
    void setResourceScoringEnabled( bool v )
    {
      if (!isResourceScoringEnabledImmutable() )
        mResourceScoringEnabled = v;
    }

    /**
      Is org.kde.ActivityManager.ResourceScoringEnabled Immutable
    */
    bool isResourceScoringEnabledImmutable()
    {
      return isImmutable( QStringLiteral( "resourceScoringEnabled" ) );
    }
```

Reviewers: ervin, #frameworks, dfaure

Reviewed By: ervin

Subscribers: dfaure, tcanabrava, kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D26368
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary:
Add a utility function is&lt;Parameter&gt;Immutable to access immutability quickly.
Generated classes uses them internally to avoid code redundance.

Sample:
```
    /**
      Set blocked-by-default
    */
    void setBlockedByDefault( bool v )
    {
      if (v != mBlockedByDefault &amp;&amp; !isBlockedByDefaultImmutable() )  {
        mBlockedByDefault = v;
        Q_EMIT blockedByDefaultChanged();
      }
    }

    /**
      Is blocked-by-default Immutable
    */
    bool isBlockedByDefaultImmutable()
    {
      return isImmutable( QStringLiteral( "blockedByDefault" ) );
    }
```

```
    /**
      Set org.kde.ActivityManager.ResourceScoringEnabled
    */
    void setResourceScoringEnabled( bool v )
    {
      if (!isResourceScoringEnabledImmutable() )
        mResourceScoringEnabled = v;
    }

    /**
      Is org.kde.ActivityManager.ResourceScoringEnabled Immutable
    */
    bool isResourceScoringEnabledImmutable()
    {
      return isImmutable( QStringLiteral( "resourceScoringEnabled" ) );
    }
```

Reviewers: ervin, #frameworks, dfaure

Reviewed By: ervin

Subscribers: dfaure, tcanabrava, kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D26368
</pre>
</div>
</content>
</entry>
<entry>
<title>Make kconfig_compiler generate ctors with the optional parent arg</title>
<updated>2019-10-08T16:13:01+00:00</updated>
<author>
<name>Kevin Ottens</name>
<email>kevin.ottens@enioka.com</email>
</author>
<published>2019-10-08T11:19:31+00:00</published>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/kconfig.git/commit/?id=5fa1a3312ab24908d870ce2a2399695ac98d828d'/>
<id>5fa1a3312ab24908d870ce2a2399695ac98d828d</id>
<content type='text'>
Reviewers: #plasma, #frameworks, dfaure, mart, apol

Reviewed By: apol

Subscribers: kossebau, apol, kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D24490
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewers: #plasma, #frameworks, dfaure, mart, apol

Reviewed By: apol

Subscribers: kossebau, apol, kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D24490
</pre>
</div>
</content>
</entry>
<entry>
<title>Generate an instance with KSharedConfig::Ptr for singleton and arg</title>
<updated>2017-01-06T08:52:45+00:00</updated>
<author>
<name>Martin Gräßlin</name>
<email>mgraesslin@kde.org</email>
</author>
<published>2016-11-16T13:59:28+00:00</published>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/kconfig.git/commit/?id=e0db2422362260a2fea3a8e1de4c64011d2f183d'/>
<id>e0db2422362260a2fea3a8e1de4c64011d2f183d</id>
<content type='text'>
Summary:
In case a kcfg with arg="true" was used and singleton the static
instance method only accepted a QString config name. This made it
impossible to combine a singleton config with an already existing and
open KSharedConfig::Ptr.

With this change an overloaded instance method is added which takes a
KSharedConfig::Ptr as argument. The private ctor, though, only takes a
KSharedConfig::Ptr and the instance method taking a QString argument
uses KSharedConfig::openConfig on the config file name.

The change is source-incompatible in the following situation:
* kcfgfile arg="true"
* Singleton = true
* Inherits is specified

In this situation the previous revision created an instance method with
a QString argument and passed that to the parent constructor. This is
not in accordance with the documentation. Any user of this behavior was
relying on a bug. With this change now the call to the parent
constructor carries a KSharedConfigPtr.

Test Plan:
kconfigcompiler tests still pass and a config with singleton
and arg="true" generates the code as I need it

Reviewers: #frameworks, dfaure, mdawson

Differential Revision: https://phabricator.kde.org/D3690
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary:
In case a kcfg with arg="true" was used and singleton the static
instance method only accepted a QString config name. This made it
impossible to combine a singleton config with an already existing and
open KSharedConfig::Ptr.

With this change an overloaded instance method is added which takes a
KSharedConfig::Ptr as argument. The private ctor, though, only takes a
KSharedConfig::Ptr and the instance method taking a QString argument
uses KSharedConfig::openConfig on the config file name.

The change is source-incompatible in the following situation:
* kcfgfile arg="true"
* Singleton = true
* Inherits is specified

In this situation the previous revision created an instance method with
a QString argument and passed that to the parent constructor. This is
not in accordance with the documentation. Any user of this behavior was
relying on a bug. With this change now the call to the parent
constructor carries a KSharedConfigPtr.

Test Plan:
kconfigcompiler tests still pass and a config with singleton
and arg="true" generates the code as I need it

Reviewers: #frameworks, dfaure, mdawson

Differential Revision: https://phabricator.kde.org/D3690
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Generate an instance with KSharedConfig::Ptr for singleton and arg"</title>
<updated>2016-12-07T08:29:38+00:00</updated>
<author>
<name>David Faure</name>
<email>faure@kde.org</email>
</author>
<published>2016-12-07T08:29:31+00:00</published>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/kconfig.git/commit/?id=4f9d7dde3a06da26d93e8f7ec98a283111a2d8c9'/>
<id>4f9d7dde3a06da26d93e8f7ec98a283111a2d8c9</id>
<content type='text'>
This reverts commit cd4e6504dfbdface00037625f0cedda511e6d839.

As suggested by Martin on release-team@kde.org, given that it breaks SC.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit cd4e6504dfbdface00037625f0cedda511e6d839.

As suggested by Martin on release-team@kde.org, given that it breaks SC.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "[autotest] Fix stupidity"</title>
<updated>2016-12-07T08:29:27+00:00</updated>
<author>
<name>David Faure</name>
<email>faure@kde.org</email>
</author>
<published>2016-12-07T08:29:27+00:00</published>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/kconfig.git/commit/?id=ebcaf997ca4e7cf687604ccb081d577f87b08008'/>
<id>ebcaf997ca4e7cf687604ccb081d577f87b08008</id>
<content type='text'>
This reverts commit 71f16741a0288d8587876dcc7dbb33ba8f00546a.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 71f16741a0288d8587876dcc7dbb33ba8f00546a.
</pre>
</div>
</content>
</entry>
<entry>
<title>[autotest] Fix stupidity</title>
<updated>2016-12-02T18:45:17+00:00</updated>
<author>
<name>Martin Gräßlin</name>
<email>mgraesslin@kde.org</email>
</author>
<published>2016-12-02T18:45:17+00:00</published>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/kconfig.git/commit/?id=71f16741a0288d8587876dcc7dbb33ba8f00546a'/>
<id>71f16741a0288d8587876dcc7dbb33ba8f00546a</id>
<content type='text'>
Sorry.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sorry.
</pre>
</div>
</content>
</entry>
<entry>
<title>Generate an instance with KSharedConfig::Ptr for singleton and arg</title>
<updated>2016-12-02T18:04:13+00:00</updated>
<author>
<name>Martin Gräßlin</name>
<email>mgraesslin@kde.org</email>
</author>
<published>2016-11-16T13:59:28+00:00</published>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/kconfig.git/commit/?id=cd4e6504dfbdface00037625f0cedda511e6d839'/>
<id>cd4e6504dfbdface00037625f0cedda511e6d839</id>
<content type='text'>
Summary:
In case a kcfg with arg="true" was used and singleton the static
instance method only accepted a QString config name. This made it
impossible to combine a singleton config with an already existing and
open KSharedConfig::Ptr.

With this change an overloaded instance method is added which takes a
KSharedConfig::Ptr as argument. The private ctor, though, only takes a
KSharedConfig::Ptr and the instance method taking a QString argument
uses KSharedConfig::openConfig on the config file name.

This provides full API compatibility and at the same time allows to use
KSharedConfig in addition to the arg name based variant.

Test Plan:
kconfigcompiler tests still pass and a config with singleton
and arg="true" generates the code as I need it

Reviewers: #frameworks

Differential Revision: https://phabricator.kde.org/D3386
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary:
In case a kcfg with arg="true" was used and singleton the static
instance method only accepted a QString config name. This made it
impossible to combine a singleton config with an already existing and
open KSharedConfig::Ptr.

With this change an overloaded instance method is added which takes a
KSharedConfig::Ptr as argument. The private ctor, though, only takes a
KSharedConfig::Ptr and the instance method taking a QString argument
uses KSharedConfig::openConfig on the config file name.

This provides full API compatibility and at the same time allows to use
KSharedConfig in addition to the arg name based variant.

Test Plan:
kconfigcompiler tests still pass and a config with singleton
and arg="true" generates the code as I need it

Reviewers: #frameworks

Differential Revision: https://phabricator.kde.org/D3386
</pre>
</div>
</content>
</entry>
</feed>
