Home · All Classes · Main Classes · Deprecated

mcomponentcache.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  **
00003  ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
00004  ** All rights reserved.
00005  ** Contact: Nokia Corporation (directui@nokia.com)
00006  **
00007  ** This file is part of libmeegotouch.
00008  **
00009  ** If you have questions regarding the use of this file, please contact
00010  ** Nokia at directui@nokia.com.
00011  **
00012  ** This library is free software; you can redistribute it and/or
00013  ** modify it under the terms of the GNU Lesser General Public
00014  ** License version 2.1 as published by the Free Software Foundation
00015  ** and appearing in the file LICENSE.LGPL included in the packaging
00016  ** of this file.
00017  **
00018  ****************************************************************************/
00019 
00020 #ifndef MCOMPONENTCACHE_H
00021 #define MCOMPONENTCACHE_H
00022 
00023 #include "mexport.h"
00024 
00025 #include <QString>
00026 
00027 class MApplication;
00028 class MApplicationWindow;
00029 class MApplicationService;
00030 class QGLWidget;
00031 class QGLFormat;
00032 class MComponentCachePrivate;
00033 
00064 class M_CORE_EXPORT MComponentCache
00065 {
00066 public:
00068 
00072     static MApplication* mApplication(int &argc, char **argv, const QString &appIdentifier = QString(), MApplicationService *service = 0);
00073 
00075 
00078     static MApplicationWindow* mApplicationWindow();
00079 
00081     static void populateForMApplication();
00082 
00084     static void populateForWRTApplication();
00085 
00087     static bool populating();
00088 
00089     static void cleanupCache();
00090 
00091 protected:
00092 
00093     static MComponentCachePrivate* const d_ptr;
00094 
00095 private:
00096 
00097     Q_DISABLE_COPY(MComponentCache)
00098 
00099     MComponentCache();
00100 
00101     /* QGLWidget object returned by glWidget is owned by the caller */
00102     static QGLWidget* glWidget();
00103     static QGLWidget* glWidget(const QGLFormat& format);
00104     friend class MApplicationWindow;
00105     friend class MGraphicsSystemHelper;
00106 
00107 #ifdef UNIT_TEST
00108     friend class Ut_MComponentCache;
00109 #endif
00110 };
00111 
00112 #endif // MCOMPONENTCACHE_H

Copyright © 2010 Nokia Corporation Generated on Thu Nov 4 2010 18:14:20 (PDT)
Doxygen 1.7.1
MeeGo Touch