66
|
1 |
/*
|
|
2 |
* Copyright (c) 2007-2008 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: This file contains the header file of the CIAUpdateParameters class
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef IA_UPDATE_PARAMETERS_H
|
|
20 |
#define IA_UPDATE_PARAMETERS_H
|
|
21 |
|
|
22 |
#include <e32base.h>
|
|
23 |
#include <e32cmn.h>
|
|
24 |
|
|
25 |
#define private public
|
|
26 |
#include "videoiadupdatewrapper.h"
|
|
27 |
#undef private
|
|
28 |
|
|
29 |
/**
|
|
30 |
* CIAUpdateParameters defines the update targets.
|
|
31 |
* The update action will be directed only to the objects
|
|
32 |
* that qualify at least one of the parameter requirements.
|
|
33 |
*
|
|
34 |
* @see CIAUpdate The operation functions provide more detailed
|
|
35 |
* description about what combinations of the parameter values
|
|
36 |
* are supported.
|
|
37 |
*
|
|
38 |
* @since S60 v3.2
|
|
39 |
*/
|
|
40 |
class CIAUpdateParameters : public CBase
|
|
41 |
{
|
|
42 |
public:
|
|
43 |
|
|
44 |
enum TUpdateImportance
|
|
45 |
{
|
|
46 |
ETest = 0x1,
|
|
47 |
ENormal = 0x2,
|
|
48 |
ERecommended = 0x4,
|
|
49 |
ECritical = 0x8,
|
|
50 |
EMandatory = 0x10,
|
|
51 |
EHidden = 0x20
|
|
52 |
};
|
|
53 |
|
|
54 |
enum TUpdateType
|
|
55 |
{
|
|
56 |
ESis = 0x1,
|
|
57 |
EFota = 0x2,
|
|
58 |
ENsu = 0x4
|
|
59 |
};
|
|
60 |
|
|
61 |
/**
|
|
62 |
* @return CIAUpdateParameters* CIAUpdateParameters object
|
|
63 |
* @exception Leaves with system wide error code.
|
|
64 |
*
|
|
65 |
* @since S60 v3.2
|
|
66 |
*/
|
|
67 |
static CIAUpdateParameters* NewL(){ return new CIAUpdateParameters;};
|
|
68 |
|
|
69 |
/**
|
|
70 |
* Destructor
|
|
71 |
*
|
|
72 |
* @since S60 v3.2
|
|
73 |
*/
|
|
74 |
virtual ~CIAUpdateParameters(){};
|
|
75 |
|
|
76 |
/**
|
|
77 |
* @param aUid Uid describes either package UID or SID.
|
|
78 |
*
|
|
79 |
* @since S60 v3.2
|
|
80 |
*/
|
|
81 |
void SetUid( const TUid& ){};
|
|
82 |
|
|
83 |
/**
|
|
84 |
* @param aSearchCriteria When correct updates are searched,
|
|
85 |
* this text is used as a criteria when checking the information
|
|
86 |
* that is attached to the updates.
|
|
87 |
*
|
|
88 |
* @since S60 v3.2
|
|
89 |
*/
|
|
90 |
void SetSearchCriteriaL( const TDesC& ){};
|
|
91 |
|
|
92 |
/**
|
|
93 |
* @return aCommandLineExecutable When the update operation finishes,
|
|
94 |
* the content of this desciptor will be used as a command line executable.
|
|
95 |
*
|
|
96 |
* @since S60 v3.2
|
|
97 |
*/
|
|
98 |
void SetCommandLineExecutableL( const TDesC& ){};
|
|
99 |
|
|
100 |
/**
|
|
101 |
* @param aCommandLineArguments When the update operation finishes,
|
|
102 |
* the content of this desciptor will be used as command line arguments
|
|
103 |
* with the command line executable.
|
|
104 |
*
|
|
105 |
* @since S60 v3.2
|
|
106 |
*/
|
|
107 |
void SetCommandLineArgumentsL( const TDesC8& ){};
|
|
108 |
|
|
109 |
/**
|
|
110 |
* If this parameter is set to ETrue,
|
|
111 |
* a ready-made wait dialog with localized texts is
|
|
112 |
* shown if CIAUpdate::CheckUpdates operation takes longer
|
|
113 |
* time to complete. This happens e.g. if the updates are
|
|
114 |
* refreshed from the server.
|
|
115 |
*
|
|
116 |
* @param aShowProgress If ETrue, a wait dialog is shown when
|
|
117 |
* CIAUpdate::CheckUpdates operation is started. If EFalse,
|
|
118 |
* the dialog is not shown.
|
|
119 |
*
|
|
120 |
* @see CIAUpdate::CheckUpdates
|
|
121 |
*
|
|
122 |
* @since S60 v3.2
|
|
123 |
*/
|
|
124 |
void SetShowProgress( TBool ){};
|
|
125 |
|
|
126 |
|
|
127 |
// aImportance acts as a importance filter to the found IAD packages. It has no meaning with found FOTA or NSU packages.
|
|
128 |
// If aImportance is not set, all importance types are valid.
|
|
129 |
// See TUpdateImportance for possible values.
|
|
130 |
void SetImportance( TUint ){};
|
|
131 |
|
|
132 |
|
|
133 |
// aType acts as a type filter to the found update packages.
|
|
134 |
// If aType is not set, all package types are valid.
|
|
135 |
// See TUpdateType for possible values. Combination of
|
|
136 |
void SetType( TUint ){};
|
|
137 |
|
|
138 |
|
|
139 |
// If refresh is set on, metadata cache is refreshed from the server when calling
|
|
140 |
// CIAUpdate::CheckUpdates operation. This option should not be set by normal applications.
|
|
141 |
// It is meant for IAUpdate background checker, and caller SID is used to control this.
|
|
142 |
void SetRefresh( TBool ){};
|
|
143 |
|
|
144 |
};
|
|
145 |
|
|
146 |
#endif // IA_UPDATE_PARAMETERS_H
|