localisation/apparchitecture/inc/apainternal.h
branchSymbian3
changeset 57 b8d18c84f71c
equal deleted inserted replaced
56:aa99f2208aad 57:b8d18c84f71c
       
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __APA_INTERNAL_H__
       
    17 #define __APA_INTERNAL_H__
       
    18 
       
    19 #if !defined(__E32BASE_H__)
       
    20 #include <e32base.h>
       
    21 #endif
       
    22 
       
    23 #if !defined(__F32FILE_H__)
       
    24 #include <f32file.h>
       
    25 #endif
       
    26 
       
    27 // classes referenced
       
    28 class MApaAppStarter;
       
    29 
       
    30 /** @internalComponent
       
    31 */
       
    32 IMPORT_C TUint MinApplicationStackSize();
       
    33 
       
    34 // comand line tokens
       
    35 
       
    36 
       
    37 /**
       
    38 @internalComponent
       
    39 */
       
    40 const TInt KApaMaxCommandLine=0x100;	
       
    41 
       
    42 /**
       
    43 @internalComponent
       
    44 */
       
    45 typedef TBuf<KApaMaxCommandLine> TApaCommandLine;
       
    46 
       
    47 /**
       
    48 @internalComponent
       
    49 */
       
    50 const TInt KApaMaxAppFileName=0x10;	// Length of App's filename without path or extension (not it's caption)
       
    51 
       
    52 /**
       
    53 @internalComponent
       
    54 */
       
    55 typedef TBuf<KApaMaxAppFileName> TApaAppFileName;
       
    56 
       
    57 /**
       
    58 @internalAll
       
    59 */
       
    60 const TUid KUidApaDoorDocStream={0x10003A35};
       
    61 
       
    62 
       
    63 /**
       
    64 @internalComponent
       
    65 @deprecated
       
    66 */
       
    67 //const TUid KUidApaDoorDocStream8={0x10000144};
       
    68 
       
    69 /**
       
    70 @internalComponent
       
    71 */
       
    72 //const TUid KUidApaDoorDocStream16={0x10003A35};
       
    73 
       
    74 //gmahe from APASVST.H 
       
    75 /**
       
    76 @internalTechnology
       
    77 @released
       
    78 */
       
    79 IMPORT_C TPtrC NameApaServStartSemaphore();
       
    80 
       
    81 /**
       
    82 @internalTechnology
       
    83 @released
       
    84 */
       
    85 IMPORT_C TInt StartupApaServer(MApaAppStarter& aAppStarter);
       
    86 
       
    87 /**
       
    88 @internalTechnology
       
    89 @released
       
    90 */
       
    91 IMPORT_C TInt ApaServThreadStart(TAny* aUnused = NULL);
       
    92 
       
    93 
       
    94 //gmahe..from ApaServerApp.h
       
    95 
       
    96 /** Panic codes that the server application framework can generate.
       
    97 @internalComponent */
       
    98 enum TApaAppServerPanic
       
    99 	{
       
   100 	/** The IPC message ID used by the client is not recognised. */
       
   101 	EApaAppServerPanicIllegalFunction,
       
   102 	/** The client already has an active notification of server exit. */
       
   103 	EApaAppServerPanicNotifyExitActive,
       
   104 	/** The client has tried to connect an already connected session. */
       
   105 	EApaAppServerPanicClientAlreadyConnected
       
   106 	};
       
   107 
       
   108 #if 0
       
   109 class MApaFsChangeObserver
       
   110 /** An interface for notifying a file system observer when
       
   111 a change has been made to the file system.
       
   112 This interface is intended for use only by CApaFsMonitor.
       
   113 
       
   114 @internalComponent
       
   115 */
       
   116 	{
       
   117 public:
       
   118 	virtual void FsChanged()=0;
       
   119 	};
       
   120 #endif
       
   121 
       
   122 #if !defined(__WINC__)
       
   123 
       
   124 class REComSession;
       
   125 
       
   126 /** 
       
   127 CApaEComMonitor
       
   128 
       
   129 A low priority (EPriorityIdle) active object which monitors changes 
       
   130 in the Ecom plugin.
       
   131 
       
   132 @see REComSession::NotifyOnChange()
       
   133 
       
   134 @internalAll 
       
   135 */ 
       
   136 
       
   137 class CApaEComMonitor : public CActive
       
   138 	{
       
   139 public:
       
   140 	 ~CApaEComMonitor();
       
   141 	 static CApaEComMonitor* NewL(TCallBack aCallBack);
       
   142 	 void Start();
       
   143 private:
       
   144 	CApaEComMonitor(TCallBack aCallBack);
       
   145 	void ConstructL ();
       
   146 	static TInt TimerCallBack(TAny* aObject);
       
   147 	void DoStart();
       
   148 	void DoCancel();
       
   149 	void RunL();
       
   150 private:
       
   151 	TCallBack iCallBack;
       
   152 	CPeriodic* iEComTimer;
       
   153 	REComSession* iEComSession;
       
   154 	TBool iEComHasChanged;
       
   155 	};
       
   156 #endif //__WINC_
       
   157 
       
   158 #endif