Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows build fixes #159

Merged
merged 4 commits into from
Jan 7, 2016
Merged

Windows build fixes #159

merged 4 commits into from
Jan 7, 2016

Conversation

Jalle19
Copy link
Contributor

@Jalle19 Jalle19 commented Jan 4, 2016

@ksooo how do I trigger Jenkins to build from this branch? Or can you do it for me if you know how?

@Jalle19 Jalle19 added the Fix label Jan 4, 2016
@ksooo
Copy link
Member

ksooo commented Jan 4, 2016

Sorry, don't have a clue.

@Jalle19
Copy link
Contributor Author

Jalle19 commented Jan 4, 2016

@ksooo are you okay with this change in general or should we use the slightly more verbose LogLevel::LEVEL_ERROR and change the other levels too? This change produced the smallest diff which is why I went with it for now.

@ksooo
Copy link
Member

ksooo commented Jan 4, 2016

should we use the slightly more verbose LogLevel::LEVEL_ERROR and change the other levels too

Yes, I would prefer this, but it's just my personal taste.

@xhaggi
Copy link
Contributor

xhaggi commented Jan 4, 2016

why not use scoped enumerations

enum class LogLevel {}

This should work IIRC.

@Jalle19
Copy link
Contributor Author

Jalle19 commented Jan 4, 2016

@xhaggi how will that help?

@xhaggi
Copy link
Contributor

xhaggi commented Jan 4, 2016

sorry thought it would work, but it seems that it doesn't. You can use camel-case or like you did prefix it.

@Jalle19
Copy link
Contributor Author

Jalle19 commented Jan 4, 2016

I think I'll use prefixing, will update later.

@Jalle19
Copy link
Contributor Author

Jalle19 commented Jan 5, 2016

@ksooo okay to merge so we can get Jenkins to build test for us? Or @xhaggi do you have a Windows build environment you can test this branch in?

@Jalle19
Copy link
Contributor Author

Jalle19 commented Jan 5, 2016

@ksooo build tested on Windows now. I found some other minor issues that I tacked on as separate commits (since the PR is named "build fixes"). Let me know if you want me to separate them into another PR. If not you can push the button.

@Jalle19
Copy link
Contributor Author

Jalle19 commented Jan 5, 2016

@Glenn-1990 any idea why DEFAULT_APPROX_TIME was an integer? I'm guessing it was a mistake which is why I changed it, feel free to correct me.

@Glenn-1990
Copy link
Contributor

@Jalle19 Yes, there was, the setting is an enum (to toggle between use strict timings - use approximate timings), it's not possible to use a boolean value for an integer enum ;-)

It's possible to use a bool as setting, but then we can only switch feature xy on or off, so we can not switch between 2 features.

@Jalle19
Copy link
Contributor Author

Jalle19 commented Jan 5, 2016

Okay, I think I get it. Do you think there will be a third option added to this setting any time soon? If I revert the commit then we should also change m_defaultApproxTime to be an integer (it's a boolean with or without my patch). What do you think?

@Glenn-1990
Copy link
Contributor

@Jalle19
No, I don't plan a 3rd option.
I'm not sure if "ReadBoolSetting" and "SetBoolSetting" will work for "autorec_approxtime" as an enum should be read out as int.

If you can confirm that it works, it's ok by me, but otherwise I should leave it as it was before this PR.

@Jalle19
Copy link
Contributor Author

Jalle19 commented Jan 5, 2016

It's only an enum in the XML, once it reaches C++ it's just a plain 0 or 1 integer. I'll do some runtime testing to make sure though.

@Jalle19
Copy link
Contributor Author

Jalle19 commented Jan 5, 2016

Semantically it should probably be stored as an integer since it's not a true/false thing, like you said it represents multiple choices. There just happens to be two choices which is what fooled me to go down the boolean route.

@Jalle19
Copy link
Contributor Author

Jalle19 commented Jan 7, 2016

Just dropped the commit that changed types of a setting, this is now good to go. I'll merge later if no one complains.

Jalle19 added a commit that referenced this pull request Jan 7, 2016
@Jalle19 Jalle19 merged commit e1ceab9 into kodi-pvr:master Jan 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants