qtmobility/src/contacts/qcontactmanager_p.h
changeset 15 1f895d8a5b2b
parent 11 06b8e2af4411
equal deleted inserted replaced
14:6fbed849b4f4 15:1f895d8a5b2b
    60 #include <QString>
    60 #include <QString>
    61 
    61 
    62 #include "qcontactmanager.h"
    62 #include "qcontactmanager.h"
    63 #include "qcontactmanagerengine.h"
    63 #include "qcontactmanagerengine.h"
    64 
    64 
       
    65 #include "qcontactactiondescriptor.h"
       
    66 #include "qcontactactionfactory.h"
       
    67 
    65 QTM_BEGIN_NAMESPACE
    68 QTM_BEGIN_NAMESPACE
    66 
    69 
    67 class QContactManagerEngineFactory;
    70 class QContactManagerEngineFactory;
    68 
    71 
    69 /* Data and stuff that is shared amongst all backends */
    72 /* Data and stuff that is shared amongst all backends */
    81         delete m_engine;
    84         delete m_engine;
    82     }
    85     }
    83 
    86 
    84     void createEngine(const QString& managerName, const QMap<QString, QString>& parameters);
    87     void createEngine(const QString& managerName, const QMap<QString, QString>& parameters);
    85     static QContactManagerEngine* engine(const QContactManager* manager);
    88     static QContactManagerEngine* engine(const QContactManager* manager);
       
    89     static QList<QContactActionDescriptor> actionDescriptors(const QString& actionName = QString(), const QString& vendorName = QString(), int implementationVersion = -1);
       
    90     static QContactAction* action(const QContactActionDescriptor& actionDescriptor);
    86 
    91 
    87     QContactManagerEngine* m_engine;
    92     QContactManagerEngine* m_engine;
    88     QContactManager::Error m_error;
    93     QContactManager::Error m_error;
    89 
    94 
    90     /* Manager plugins */
    95     /* Manager plugins */
    93     static bool m_discoveredStatic;
    98     static bool m_discoveredStatic;
    94     static QStringList m_pluginPaths;
    99     static QStringList m_pluginPaths;
    95     static void loadFactories();
   100     static void loadFactories();
    96     static void loadStaticFactories();
   101     static void loadStaticFactories();
    97 
   102 
       
   103     /* Action Implementations */
       
   104     typedef QHash<QContactActionDescriptor, QContactActionFactory*> DescriptorHash;
       
   105     static QList<QContactActionFactory*> m_actionfactories; // list of all factories
       
   106     static QList<QContactActionDescriptor> m_descriptors; // all descriptors
       
   107     static DescriptorHash m_descriptormap;
       
   108     static QHash<QString, int> m_actionmap;
       
   109     static QHash<QString, int> m_vendormap;
       
   110 
    98 private:
   111 private:
    99     Q_DISABLE_COPY(QContactManagerData)
   112     Q_DISABLE_COPY(QContactManagerData)
   100 };
   113 };
   101 
   114 
   102 
   115