This repository has been archived by the owner on Aug 12, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
262 additions
and
71 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
qqinterface/src/main/java/com/tencent/mobileqq/qqguildsdk/api/impl/GProSessionImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.tencent.mobileqq.qqguildsdk.api.impl; | ||
|
||
import com.tencent.qqnt.kernelgpro.nativeinterface.IKernelGuildService; | ||
|
||
public class GProSessionImpl { | ||
public IKernelGuildService getGuildService() { | ||
return null; | ||
} | ||
|
||
|
||
} |
10 changes: 1 addition & 9 deletions
10
qqinterface/src/main/java/com/tencent/mobileqq/qqguildsdk/data/GProGuildInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
qqinterface/src/main/java/com/tencent/mobileqq/qqguildsdk/data/GProRoleMemberListInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
...src/main/java/com/tencent/mobileqq/qqguildsdk/data/genc/GGProGuildMemberSearchResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
qqinterface/src/main/java/com/tencent/qqnt/kernel/nativeinterface/GProJoinGuildResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
qqinterface/src/main/java/com/tencent/qqnt/kernel/nativeinterface/GProJoinGuildsResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
qqinterface/src/main/java/com/tencent/qqnt/kernel/nativeinterface/GProRoleMemberList.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
.../src/main/java/com/tencent/qqnt/kernel/nativeinterface/GProSearchMemberAndRoleResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...a/com/tencent/qqnt/kernel/nativeinterface/IGProFetchChannelInvisibleRoleListCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...va/com/tencent/qqnt/kernel/nativeinterface/IGProFetchChannelLiveableRoleListCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...ce/src/main/java/com/tencent/qqnt/kernel/nativeinterface/IGProFetchGuildInfoCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package com.tencent.qqnt.kernel.nativeinterface; | ||
|
||
import com.tencent.qqnt.kernelgpro.nativeinterface.GProGuild; | ||
|
||
public interface IGProFetchGuildInfoCallback { | ||
void onFetchGuildInfo(int code, String reason, GProGuild gProGuild); | ||
} |
2 changes: 2 additions & 0 deletions
2
...ce/src/main/java/com/tencent/qqnt/kernel/nativeinterface/IGProFetchGuildListCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
qqinterface/src/main/java/com/tencent/qqnt/kernel/nativeinterface/IGProResultCallback.java
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
qqinterface/src/main/java/com/tencent/qqnt/kernel/nativeinterface/IKernelGuildListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
qqinterface/src/main/java/com/tencent/qqnt/kernel/nativeinterface/IKernelGuildService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
...qnt/kernel/nativeinterface/GProGuild.java → ...kernelgpro/nativeinterface/GProGuild.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...kernel/nativeinterface/GProGuildRole.java → ...elgpro/nativeinterface/GProGuildRole.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...l/nativeinterface/GProRoleCreateInfo.java → ...o/nativeinterface/GProRoleCreateInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...iveinterface/IGProCreateRoleCallback.java → ...iveinterface/IGProCreateRoleCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...IGProFetchMemberListWithRoleCallback.java → ...IGProFetchMemberListWithRoleCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...erface/IGProFetchMemberRolesCallback.java → ...erface/IGProFetchMemberRolesCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...IGProFetchRoleListPermissionCallback.java → ...IGProFetchRoleListPermissionCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
...ace/IGProFetchRolePermissionCallback.java → ...ace/IGProFetchRolePermissionCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...erface/src/main/java/com/tencent/qqnt/kernelgpro/nativeinterface/IGProResultCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.tencent.qqnt.kernelgpro.nativeinterface; | ||
|
||
import com.tencent.qqnt.kernel.nativeinterface.GProSecurityResult; | ||
|
||
public interface IGProResultCallback { | ||
void onResult(int code, String msg, GProSecurityResult result); | ||
} |
90 changes: 90 additions & 0 deletions
90
...erface/src/main/java/com/tencent/qqnt/kernelgpro/nativeinterface/IKernelGuildService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
package com.tencent.qqnt.kernelgpro.nativeinterface; | ||
|
||
import com.tencent.qqnt.kernel.nativeinterface.GProFaceAuthInfo; | ||
import com.tencent.qqnt.kernel.nativeinterface.GProGuildReqInfo; | ||
import com.tencent.qqnt.kernel.nativeinterface.GProSimpleProfile; | ||
import com.tencent.qqnt.kernel.nativeinterface.IGProAddGuildInfoCallBack; | ||
import com.tencent.qqnt.kernel.nativeinterface.IGProFetchChannelInvisibleRoleListCallback; | ||
import com.tencent.qqnt.kernel.nativeinterface.IGProFetchChannelLiveableRoleListCallback; | ||
import com.tencent.qqnt.kernel.nativeinterface.IGProFetchGuildInfoCallback; | ||
import com.tencent.qqnt.kernel.nativeinterface.IGProFetchGuildListCallback; | ||
import com.tencent.qqnt.kernel.nativeinterface.IGProFetchRetentionGuildListCallback; | ||
import com.tencent.qqnt.kernel.nativeinterface.IGProFetchUserJoinedGuildListCallback; | ||
import com.tencent.qqnt.kernel.nativeinterface.IGProGetMemberInfoByOpenIdCallback; | ||
import com.tencent.qqnt.kernel.nativeinterface.IGProGetUserInfoCallback; | ||
import com.tencent.qqnt.kernel.nativeinterface.IKernelGuildListener; | ||
|
||
import java.util.ArrayList; | ||
|
||
public interface IKernelGuildService { | ||
void refreshGuildList(boolean isForced); // 只刷新id,详细信息需要额外获取 | ||
|
||
//ArrayList<GProQQMsgListGuild> getQQMsgListGuilds(); 啥也拿不到 | ||
|
||
void fetchGuildList(ArrayList<GProGuildReqInfo> reqInfos, byte[] cookie, int i2, IGProFetchGuildListCallback iGProFetchGuildListCallback); | ||
|
||
void fetchRetentionGuildList(int i2, int i3, byte[] cookie, long j2, IGProFetchRetentionGuildListCallback iGProFetchRetentionGuildListCallback); | ||
|
||
void fetchUserJoinedGuildList(long guildId, long tinyId, String cookie, IGProFetchUserJoinedGuildListCallback cb); | ||
|
||
void addKernelGuildListener(IKernelGuildListener iKernelGuildListener); | ||
|
||
void GetMemberInfoByOpenId(String str, long j2, boolean z, boolean z2, IGProGetMemberInfoByOpenIdCallback iGProGetMemberInfoByOpenIdCallback); | ||
|
||
ArrayList<GProGuild> getGroupGuildListFromCache(); | ||
|
||
ArrayList<GProGuild> getGuildListFromCache(); | ||
|
||
void fetchAddGuildInfo(int appId, long guildId, IGProAddGuildInfoCallBack iGProAddGuildInfoCallBack); | ||
|
||
void fetchGuildInfo(long guildId, int seq, IGProFetchGuildInfoCallback iGProFetchGuildInfoCallback); | ||
|
||
//void fetchGuildInfoByAppIdentity(GProGuildIdentity gProGuildIdentity, String str, String str2, IGProFetchGuildInfoByAppIdentityCallback iGProFetchGuildInfoByAppIdentityCallback); | ||
|
||
void fetchGuildInfoForGuest(long guildId, int seq, IGProFetchGuildInfoCallback cb); | ||
|
||
//void fetchGuestGuildInfoWithChannelList(String guildId, String str2, int i2, int seq, String str3, | ||
// IGProFetchGuestGuildInfoWithChannelListCallback iGProFetchGuestGuildInfoWithChannelListCallback); | ||
|
||
GProGuild getGuildInfoFromCache(long guildId); | ||
|
||
// 第一次请求: startIndex = 0 , roleIdIndex = 2 | ||
void fetchMemberListWithRole(long guildId, long channelId, long startIndex, long roleIndex, int count, int seq, IGProFetchMemberListWithRoleCallback cb); | ||
|
||
void refreshGuildInfo(long guildId, boolean force, int seq); | ||
|
||
void refreshGuildInfoOnly(long j2, boolean z, int i2); | ||
|
||
void refreshGuildUserProfileInfo(long guildId, long tinyId, int seq); | ||
|
||
void fetchUserInfo(long guildId, long channelId, ArrayList<Long> tinyIdList, int seq, IGProGetUserInfoCallback cb); | ||
|
||
//@Deprecated(since = "QQ新版本不支持创建话题子频道") | ||
//void fetchTopFeeds(long guildId, long channelId, IGProFetchTopFeedsCallback cb); | ||
|
||
void fetchChannelInvisibleRoleList(long guildId, long channelId, IGProFetchChannelInvisibleRoleListCallback cb); | ||
|
||
void fetchChannelLiveableRoleList(long guildId, long channelId, IGProFetchChannelLiveableRoleListCallback cb); | ||
|
||
void fetchMemberRoles(long guildId, long channelId, long tinyId, int seq, IGProFetchMemberRolesCallback cb); | ||
|
||
void fetchRoleListWithPermission(long guildId, int seq, IGProFetchRoleListPermissionCallback cb); | ||
|
||
void fetchRoleWithPermission(long guildId, long roleId, int seq, IGProFetchRolePermissionCallback cb); | ||
|
||
GProSimpleProfile getSimpleProfile(long guildId, long tinyId, int seq); | ||
|
||
GProFaceAuthInfo getFaceAuthInfo(); | ||
|
||
String getGuildUserAvatarUrl(long guildId, long tinyId, int seq); | ||
|
||
String getGuildUserNickname(long guildId); | ||
|
||
void deleteRole(long guild, long role, IGProResultCallback cb); | ||
|
||
void setMemberRoles(long guild, long u1, long u2, long tinyId, ArrayList<Long> addRoles, ArrayList<Long> removeRoles, IGProResultCallback cb); | ||
|
||
void setRoleInfo(long guild, long role, GProRoleCreateInfo info, IGProResultCallback cb); | ||
|
||
void createRole(long guildId, GProRoleCreateInfo info, ArrayList<Long> initialUsers, IGProCreateRoleCallback cb); | ||
} |
9 changes: 9 additions & 0 deletions
9
...face/src/main/java/com/tencent/qqnt/kernelgpro/nativeinterface/IQQGProWrapperSession.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.tencent.qqnt.kernelgpro.nativeinterface; | ||
|
||
public interface IQQGProWrapperSession { | ||
IKernelGuildService getGuildService(); | ||
|
||
static class CppProxy { | ||
public static native IQQGProWrapperSession getGProWrapperSession(String str); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
.../src/main/java/com/tencent/qqnt/ntstartup/nativeinterface/IQQNTStartupSessionWrapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.tencent.qqnt.ntstartup.nativeinterface; | ||
|
||
import java.util.HashMap; | ||
|
||
public interface IQQNTStartupSessionWrapper { | ||
HashMap<String, String> getSessionIdList(); | ||
|
||
int start(); | ||
|
||
int stop(); | ||
} |
Oops, something went wrong.