Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

omgguid.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002                           omgguid.cpp  -  description
00003                              -------------------
00004     begin                : Sept 2006
00005     copyright            : (C) 2006 by Tim Sutton
00006     email                : tim@linfiniti.com
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #include "omgguid.h"
00019 #include <QUuid>
00020 
00021 OmgGuid::OmgGuid()
00022 {
00023   mGuid=QUuid::createUuid().toString().replace("{","").replace("}","");
00024 }
00025 OmgGuid::~OmgGuid()
00026 {
00027 }
00028 QString OmgGuid::guid() const
00029 {
00030   return mGuid;
00031 }
00032 
00033 void OmgGuid::setGuid(QString theGuid)
00034 {
00035   if (theGuid.isEmpty())
00036   {
00037     mGuid=QUuid::createUuid().toString().replace("{","").replace("}","");
00038   }
00039   else
00040   {
00041     mGuid=theGuid;
00042   }
00043 }

Generated on Mon Apr 28 15:08:39 2008 for openModellerDesktop by  doxygen 1.4.1-20050210