screensavermodel/inc/screensaverfactory.h
changeset 73 4bc7b118b3df
parent 66 32469d7d46ff
child 80 397d00875918
child 81 5ef31a21fdd5
equal deleted inserted replaced
66:32469d7d46ff 73:4bc7b118b3df
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 * 
       
    14 * Description:  Screensaver factory.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SCREENSAVERFACTORY_H
       
    19 #define SCREENSAVERFACTORY_H
       
    20 
       
    21 #include <QObject>
       
    22 
       
    23 #include "iscreensaverprovider.h"
       
    24 #include "screensavermodel_global.h"
       
    25 
       
    26 class QPluginLoader;
       
    27 
       
    28 class SREENSAVERMODEL_EXPORT ScreensaverPluginUnloader : public QObject
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 public:
       
    33 
       
    34     ScreensaverPluginUnloader(QPluginLoader *pluginLoader, QObject *parent = 0);
       
    35     ~ScreensaverPluginUnloader();
       
    36 
       
    37 private:
       
    38 
       
    39     QPluginLoader *mPluginLoader;
       
    40 
       
    41 };
       
    42 
       
    43 class ScreensaverFactoryPrivate;
       
    44 
       
    45 class SREENSAVERMODEL_EXPORT ScreensaverFactory : public QObject
       
    46 {
       
    47     Q_OBJECT
       
    48 
       
    49 public:
       
    50 
       
    51     ScreensaverFactory(const QString& pluginDirectory, QObject *parent = 0);
       
    52     virtual ~ScreensaverFactory();
       
    53 
       
    54     Screensaver *createScreensaver(const ScreensaverToken &token);
       
    55 
       
    56 private:
       
    57 
       
    58     Q_DISABLE_COPY(ScreensaverFactory)
       
    59 
       
    60 private:
       
    61 
       
    62     ScreensaverFactoryPrivate *m_d;
       
    63     friend class ScreensaverFactoryPrivate;
       
    64 
       
    65 };
       
    66 
       
    67 #endif // SCREENSAVERFACTORY_H