epoc32/include/mw/proengfactory.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     3
* All rights reserved.
williamr@2
     4
* This component and the accompanying materials are made available
williamr@4
     5
* under the terms of "Eclipse Public License v1.0"
williamr@2
     6
* which accompanies this distribution, and is available
williamr@4
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@2
     8
*
williamr@2
     9
* Initial Contributors:
williamr@2
    10
* Nokia Corporation - initial contribution.
williamr@2
    11
*
williamr@2
    12
* Contributors:
williamr@2
    13
*
williamr@2
    14
* Description: Factory for Profiles Engine Wrapper.
williamr@2
    15
*
williamr@2
    16
*/
williamr@2
    17
williamr@2
    18
williamr@2
    19
williamr@2
    20
#ifndef PROENGFACTORY_H
williamr@2
    21
#define PROENGFACTORY_H
williamr@2
    22
williamr@2
    23
//  INCLUDES
williamr@2
    24
#include <e32def.h>
williamr@2
    25
williamr@2
    26
// FORWARD DECLARATIONS
williamr@2
    27
class RFs;
williamr@2
    28
class MProEngEngine;
williamr@2
    29
class MProEngAlertToneSeeker;
williamr@2
    30
class MProEngNotifyHandler;
williamr@2
    31
williamr@2
    32
// CLASS DECLARATION
williamr@2
    33
williamr@2
    34
/**
williamr@2
    35
*  Factory for Profiles Engine Wrapper.
williamr@2
    36
*  You can create new instances of Profiles Engines, Notification Handlers and
williamr@2
    37
*  Alert Tone Seekers by using this factory.<br><br>
williamr@2
    38
*  Example:
williamr@2
    39
*  @code
williamr@2
    40
*  // Create a new instance of Profiles Engine:
williamr@2
    41
*  MProEngEngine* engine =
williamr@2
    42
*      ProEngFactory::NewEngineLC();
williamr@2
    43
*
williamr@2
    44
*  // Create a new instance of Notification Handler:
williamr@2
    45
*  MProEngNotifyHandler* notifyHandler =
williamr@2
    46
*      ProEngFactory::NewNotifyHandlerL();
williamr@2
    47
*
williamr@2
    48
*  // Create a new instance of Alert Tone Seeker:
williamr@2
    49
*  MProEngAlertToneSeeker* toneSeeker =
williamr@2
    50
*      ProEngFactory::NewAlertToneSeekerL();
williamr@2
    51
*  @endcode
williamr@2
    52
*
williamr@2
    53
*  @lib ProfileEngine.lib
williamr@2
    54
*  @since Series 60 3.1
williamr@2
    55
*/
williamr@2
    56
class ProEngFactory
williamr@2
    57
    {
williamr@2
    58
    public: // New functions
williamr@2
    59
williamr@2
    60
        /**
williamr@2
    61
        * Create a new instance of Profiles Engine.
williamr@2
    62
        * @since Series 60 3.1
williamr@2
    63
        * @return New instance of Profiles Engine.
williamr@2
    64
        *         Ownership is transferred to the client application.
williamr@2
    65
        */
williamr@2
    66
        IMPORT_C static MProEngEngine* NewEngineL();
williamr@2
    67
williamr@2
    68
        /**
williamr@2
    69
        * Create a new instance of Profiles Engine. The created object is
williamr@2
    70
        * pushed into the cleanup stack.
williamr@2
    71
        * @since Series 60 3.1
williamr@2
    72
        * @return New instance of Profiles Engine.
williamr@2
    73
        *         Ownership is transferred to the client application.
williamr@2
    74
        */
williamr@2
    75
        IMPORT_C static MProEngEngine* NewEngineLC();
williamr@2
    76
williamr@2
    77
        /**
williamr@2
    78
        * Create a new instance of Profiles Engine.
williamr@2
    79
        * @since Series 60 3.1
williamr@2
    80
        * @param aFs A reference to an open file server session. aFs must
williamr@2
    81
        *        remain connected for the lifetime of the returned object.
williamr@2
    82
        * @return New instance of Profiles Engine.
williamr@2
    83
        *         Ownership is transferred to the client application.
williamr@2
    84
        */
williamr@2
    85
        IMPORT_C static MProEngEngine* NewEngineL( RFs& aFs );
williamr@2
    86
williamr@2
    87
        /**
williamr@2
    88
        * Create a new instance of Profiles Engine. The created object is
williamr@2
    89
        * pushed into the cleanup stack.
williamr@2
    90
        * @since Series 60 3.1
williamr@2
    91
        * @param aFs A reference to an open file server session. aFs must
williamr@2
    92
        *        remain connected for the lifetime of the returned object.
williamr@2
    93
        * @return New instance of Profiles Engine.
williamr@2
    94
        *         Ownership is transferred to the client application.
williamr@2
    95
        */
williamr@2
    96
        IMPORT_C static MProEngEngine* NewEngineLC( RFs& aFs );
williamr@2
    97
williamr@2
    98
        /**
williamr@2
    99
        * Create a new instance of Profiles Notification Handler.
williamr@2
   100
        * @since Series 60 3.1
williamr@2
   101
        * @return New instance of Notification Handler.
williamr@2
   102
        *         Ownership is transferred to the client application.
williamr@2
   103
        */
williamr@2
   104
        IMPORT_C static MProEngNotifyHandler* NewNotifyHandlerL();
williamr@2
   105
williamr@2
   106
        /**
williamr@2
   107
        * Create a new instance of Profiles Alert Tone Seeker.
williamr@2
   108
        * @since Series 60 3.1
williamr@2
   109
        * @return New instance of Alert Tone Seeker.
williamr@2
   110
        *         Ownership is transferred to the client application.
williamr@2
   111
        */
williamr@2
   112
        IMPORT_C static MProEngAlertToneSeeker* NewAlertToneSeekerL();
williamr@2
   113
williamr@2
   114
    private:
williamr@2
   115
williamr@2
   116
        // Prohibit C++ default constructor.
williamr@2
   117
        ProEngFactory();
williamr@2
   118
        // Prohibit Destructor.
williamr@2
   119
        ~ProEngFactory();
williamr@2
   120
williamr@2
   121
    };
williamr@2
   122
williamr@2
   123
#endif      // PROENGFACTORY_H
williamr@2
   124
williamr@2
   125
// End of File
williamr@2
   126