~ubuntu-branches/ubuntu/precise/ginkgocadx/precise

« back to all changes in this revision

Viewing changes to src/cadxcore/prvext/prvext.h

  • Committer: Package Import Robot
  • Author(s): Andreas Tille
  • Date: 2011-09-09 08:39:26 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: package-import@ubuntu.com-20110909083926-iktecd132cnku5cd
Tags: 2.5.4.0~rc-1
New upstream version (patches were applied)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  
3
 
 *  $Id: prvext.h 3686 2011-04-13 13:12:51Z carlos $
 
3
 *  $Id: prvext.h 4072 2011-08-10 13:45:52Z tovar $
4
4
 *  Ginkgo CADx Project
5
5
 *
6
6
 *  Copyright 2008-10 MetaEmotion S.L. All rights reserved.
57
57
class PrivateExtension
58
58
{
59
59
public:
60
 
        PrivateExtension(const std::string& sid, const std::string& provider, const std::string& description, int version, int subversion, int subrelease)
 
60
        PrivateExtension(const std::string& sid, const std::string& provider, const std::string& description, int version, int subversion, int subrelease, const unsigned char* pixelDataIcon = NULL, unsigned int iconSize = 0)
61
61
        {
62
62
                this->sid = sid;
63
63
                this->provider = provider;
65
65
                this->version = version;
66
66
                this->subversion = subversion;
67
67
                this->subrelease = subrelease;
 
68
                this->iconSize = iconSize;
 
69
                this->pixelDataIcon = pixelDataIcon;
68
70
 
69
71
                this->coreVersion = GINKGO_VERSION;
70
72
                this->coreSubversion = GINKGO_SUB_VERSION;
100
102
                return this->subrelease;
101
103
        }
102
104
 
103
 
 
104
105
        const std::string& GetSID() const
105
106
        {
106
107
                return this->sid;
146
147
                return coreSubversion;
147
148
        }
148
149
 
 
150
        const unsigned char* GetPixelDataIcon()
 
151
        {
 
152
                return pixelDataIcon;
 
153
        }
 
154
 
 
155
        int GetIconSize() {
 
156
                return iconSize;
 
157
        }
 
158
 
149
159
        PrivateExtension& operator=(const PrivateExtension& o)
150
160
        {
151
161
                this->version = o.version;
158
168
 
159
169
                this->coreVersion = o.coreVersion;
160
170
                this->coreSubversion = o.coreSubversion;
 
171
                this->pixelDataIcon = o.pixelDataIcon;
 
172
                this->iconSize = o.iconSize;
161
173
                return *this;
162
174
        }
163
175
 
187
199
        std::string description;
188
200
        std::string fecha_compilacion;
189
201
        std::string path;
 
202
        const unsigned char* pixelDataIcon;
 
203
        unsigned int    iconSize;
190
204
};
191
205
 
192
206
//define a function pointer type for convenience