diff options
author | Andrew <forkk@forkk.net> | 2013-02-14 22:40:00 -0600 |
---|---|---|
committer | Andrew <forkk@forkk.net> | 2013-02-14 22:40:00 -0600 |
commit | 4b1680f2428f33dc8ecbf3f4f4b964b0a02e7e06 (patch) | |
tree | 152b4274af09dace56ad4448963eb8647678b273 /data/version/instversion.cpp | |
parent | fe452e3ac96699d51d47ecdc43c58778b512d72a (diff) | |
download | MultiMC-4b1680f2428f33dc8ecbf3f4f4b964b0a02e7e06.tar MultiMC-4b1680f2428f33dc8ecbf3f4f4b964b0a02e7e06.tar.gz MultiMC-4b1680f2428f33dc8ecbf3f4f4b964b0a02e7e06.tar.lz MultiMC-4b1680f2428f33dc8ecbf3f4f4b964b0a02e7e06.tar.xz MultiMC-4b1680f2428f33dc8ecbf3f4f4b964b0a02e7e06.zip |
Started reworking the instance system.
Diffstat (limited to 'data/version/instversion.cpp')
-rw-r--r-- | data/version/instversion.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/data/version/instversion.cpp b/data/version/instversion.cpp new file mode 100644 index 00000000..1493153a --- /dev/null +++ b/data/version/instversion.cpp @@ -0,0 +1,32 @@ +/* Copyright 2013 MultiMC Contributors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "instversion.h" +#include "instversionlist.h" + +InstVersion::InstVersion(InstVersionList *parent) : + QObject(parent) +{ + +} + +InstVersionList *InstVersion::versionList() const +{ + // Parent should *always* be an InstVersionList + if (!parent() || !parent()->inherits("InstVersionList")) + return NULL; + else + return (InstVersionList *)parent(); +} |